Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-1081

Android picker selection when bottom of a window

    Details

      Description

      On Android 4, when touching the picker, a dropdown list appear on the bottom of the picker and when it doesn't have enough it appear on the top of it.
      But when the picker is too down to see all the content of the list but not enough to make the dropdown list appear at the top, you have a list which is down the picker but not scrollable. So you can only select only the 2 or 3 first choices.

      Test case with Alloy:
      create a view containing this :

       
      <Alloy>
      	<ScrollView class="vgroup">
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      			<Picker>
      				<PickerRow title="1"/>
      				<PickerRow title="2"/>
      				<PickerRow title="3"/>
      				<PickerRow title="4"/>
      				<PickerRow title="5"/>
      				<PickerRow title="6"/>
      				<PickerRow title="7"/>
      			</Picker>
      			<Label>SETTINGS</Label>
      			<Label>SETTINGS</Label>
      		</ScrollView>
      </Alloy>
      

      -scroll to the bottom of page and try to select other than the 2 first choices. If you just scroll a little up the dropdown list will appear at the top of the picker.

      EDIT : Resolved! I managed to solve this issue when doing a simple test project, the problem was in the tiapp.xml.
      In the android manifest part I have put the following tag

       <supports-screens android:anyDensity="false"/>

      If you delete it or set it to true it is OK!
      Strange link to the bug!

        Attachments

          Activity

            People

            • Assignee:
              ragrawal Ritu Agrawal
              Reporter:
              neveuadrien Adrien NEVEU
            • Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Integration