Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1081] Android picker selection when bottom of a window

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-04-06T05:55:29.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, dropdown, list, picker, scroll, scrollable
ReporterAdrien NEVEU
AssigneeRitu Agrawal
Created2014-04-02T14:46:09.000+0000
Updated2016-03-08T07:37:26.000+0000

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

FileDateSize
bug_dropdown_list.png2014-04-03T07:31:46.000+00004733
dropdown_list_normal.png2014-04-03T07:31:46.000+00007371

Comments

  1. Ritu Agrawal 2014-04-02

    Please attach a simple runnable test case to reproduce this issue and we will be happy to investigate further.
  2. Adrien NEVEU 2014-04-03

    Test case and screenshots updated!
  3. Ritu Agrawal 2014-04-04

    I tried your test case but it throws error at the runtime. Can you please attach a simple but complete runnable project to reproduce this issue?
  4. Ritu Agrawal 2014-04-06

    I am glad that this issue is resolved now. Google strongly recommends setting anyDensity to true so your observation is the correct behavior.

JSON Source