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

Android: ScrollView not scrolling when keyboard is showing

    Details

    • Story Points:
      3
    • Sprint:
      2017 Sprint 20 SDK

      Description

      When using SDK 6.2.2GA on Android, ScrollView will not scroll when the keyboard is visible after clicking on a TextField.

      When using SDK 6.2.0GA or 6.1.2GA it will work correctly.

      See images attached and code below.

      view.xml:

      <Alloy>
      	<Window class="container" >
      		
      		<ScrollView id="scrollView" showVerticalScrollIndicator="true">
      			
      			<View id="userView" >
      				<ImageView class="icons" image="/icons/user.png" />
      				<TextField id="userTxt" />
      				<View bottom="0" width="Titanium.UI.FILL" height="1" backgroundColor="#d3d3d3" />
      			</View>
      			
      			<View id="passView" >
      				<ImageView class="icons" image="/icons/lock.png" />
      				<TextField id="passTxt" />
      				<View bottom="0" width="Titanium.UI.FILL" height="1" backgroundColor="#d3d3d3" />
      			</View>
      			
      			<Button id="registerGmailBtn" title="L('registerGmail')" />
      			
      			<View id="btns">
      				<Button class="smallBtns" id="loginBtn" title="L('login')" />
      				<Button class="smallBtns" id="registerBtn" title="L('register')" />
      			</View>
      			
      			<Button class="smallBtns" id="legalBtn" title="L('legalNotice')" />
      			
      			<Switch value="true" />
      			
      		</ScrollView>
       
      	</Window>
      	
      </Alloy>
      

      tss:

      ".container" : {
      	backgroundColor: 'white'	
      }
       
      ".container[platform=android]" : {
      	exitOnClose : true
      }
       
      "Window[platform=android]":{
      	theme : 'Theme.AppCompat.NoTitleBar',
      	windowSoftInputMode: Ti.UI.Android.SOFT_INPUT_STATE_HIDDEN
      }
       
      "#scrollView": {
      	layout: 'vertical'
      }
       
      ".icons" : {
      	left: 0,
      	width: "25dp",
      	height: "25dp"
      }
       
      "#userView" : {
      	top: "160dp",
      	width: "80%",
      	height: "50dp"	
      }
       
      "#userTxt" : {
      	hintText : L('user'),
      	left: "10%",
      	right: "10%",
      	backgroundColor: 'transparent',
      	width: Titanium.UI.FILL,
      	hintTextColor: "grey",
      	color : "black"
      }
       
      "#passView" : {
      	width : "80%",
      	height : "50dp"
      }
       
      "#passTxt" : {
      	hintText : L('password'),
      	passwordMask: true,
      	left: "10%",
      	right: "10%",
      	backgroundColor: 'transparent',
      	width: Titanium.UI.FILL,
      	hintTextColor: "grey",
      	color : "black"
      }
       
      "#registerGmailBtn" : {
      	top: "20dp",
      	width: "80%"
      }
       
      "#btns" : {
      	top: "20dp",
      	height: Ti.UI.SIZE
      }
       
      ".smallBtns" : {
      	width: "120dp"
      }
       
      "#loginBtn" : {
      	left: "10%"
      }
       
      "#registerBtn" : {
      	right: "10%"
      }
       
      "#legalBtn" : {
      	top: "40dp"
      }
      

        Attachments

          Activity

            People

            • Assignee:
              gmathews Gary Mathews
              Reporter:
              gfigueras Guillermo Figueras
              Reviewer:
              Joshua Quick
              Tester:
              Lokesh Choudhary
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Source Code