[AC-1081] Android picker selection when bottom of a window
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2014-04-06T05:55:29.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, dropdown, list, picker, scroll, scrollable |
Reporter | Adrien NEVEU |
Assignee | Ritu Agrawal |
Created | 2014-04-02T14:46:09.000+0000 |
Updated | 2016-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
File | Date | Size |
---|---|---|
bug_dropdown_list.png | 2014-04-03T07:31:46.000+0000 | 4733 |
dropdown_list_normal.png | 2014-04-03T07:31:46.000+0000 | 7371 |
Please attach a simple runnable test case to reproduce this issue and we will be happy to investigate further.
Test case and screenshots updated!
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?
I am glad that this issue is resolved now. Google strongly recommends setting anyDensity to true so your observation is the correct behavior.