Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-8869

Android: soft keyboard is covering the tableViewRow textField

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Won't Fix
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      TiSDK 2.1
      Android OS

      Description

      Problem Description

      The soft keyboard might partially or fully cover the textField.

      Steps to reproduce and code sample

      1. Create a tableView with a number or rows with a textField. Set the windowSoftInputMode property for the window.
      2. Click on one of the textField in the lower part of the screen (the part that should then be covered by the soft keyboard)
      Result: keyboard opens, the tableView it's moved up but the keyboard partially cover the focused textField
      3. Click on back button and click again in the textField
      Result: keyboard open, but the tableView does not scroll up. The keyboard covers also the focused textField.

      Code sample

      var win = Ti.UI.createWindow({
          title:'pippo',
          backgroundColor:'white',
          windowSoftInputMode:Ti.UI.Android.SOFT_INPUT_ADJUST_PAN
      });
       
       
       
      var data=[];
       
      function createRows(i) {
      		var row = Titanium.UI.createTableViewRow({
      			height : 70,
      			backgroundColor : 'white'
      		});
      		
       
      		var inputTextField = Titanium.UI.createTextField({
      			color : '#ff7c00',
      			top : 10,
      			height : 50,
      			textAlign : 'right',
      			width : '25%',
      			hintText : '',
      			left : '65%',
      			right : '8%',
      			softKeyboardOnFocus : (Ti.UI.Android) ? Titanium.UI.Android.SOFT_KEYBOARD_SHOW_ON_FOCUS : '',
      			borderStyle : Titanium.UI.INPUT_BORDERSTYLE_ROUNDED,
      			keyboardType : Titanium.UI.KEYBOARD_NUMBERS_PUNCTUATION,
      			returnKeyType : Titanium.UI.RETURNKEY_DONE,
      			font : {
      				fontSize : 20,
      				fontColor : '#ff7c00',
      				fontWeight : 'bold',
      				fontFamily : 'Helvetica Neue'
      			}
      		});
      		inputTextField.addEventListener('return', function() {
      			alert('return');
      			inputTextField.blur();
      		});
       
      		row.add(inputTextField);
      		return row;
      	}
       
       
      for( i = 0; i <= 20; i++) {
      	var row = createRows(i);
      	data.push(row);
      };
       
       
       
      var tv = Ti.UI.createTableView({
      	bottom:120,
      	data:data
      });
       
      win.add(tv);
       
       
       
      var view1 = Ti.UI.createView({
          backgroundColor:'blue',
          bottom:0,
          height:100,
      });
      win.add(view1);
       
      win.open();
      

      Additional notes

      Bug reported by ING.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vduggal Vishal Duggal (Inactive)
                Reporter:
                fcasali Federico Casali
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-13147
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Integration