[TIMOB-19822] Android: Picker spinner columns and its items are not sized/positioned correctly on Android 5.0 and higher
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2018-05-11T22:58:07.000+0000 |
Affected Version/s | Release 5.0.2 |
Fix Version/s | Release 7.3.0 |
Components | Android |
Labels | android, picker, spinner |
Reporter | Rodolfo Perottoni |
Assignee | Joshua Quick |
Created | 2015-10-07T14:43:53.000+0000 |
Updated | 2018-06-25T22:43:45.000+0000 |
Description
Steps to reproduce:
* Create a view with a
<Picker useSpinner="true"/>
* Create a PickerColumn with 9 PickerRows and add it into the Picker.
* It will look strange (see attached image). The number is not in the middle of the selection indicator.
!Screen Shot 2015-10-07 at 11.29.08.png|thumbnail!
* Try setting your PickerColumn height or width to double its size: it gets worse. The selection indicator always shows 2 rows below what is currently selected.
In the image below the first 3 picker columns are selecting the first row (0), but what is actually being shown is that the 2 is selected. The 4th column selecting the last row (9), but what is being shown is that white space.
!Screen Shot 2015-10-07 at 11.31.06.png|thumbnail!
What i've tried:
* Tested on Ti SDK 4.1.0GA, 5.0.1GA and 5.0.3.v20151002003129
* Tested on both android 5.1.0 (simulator) and 4.4.2 (real device)
* Setting each picker row's height doesn't change anything
Attachments
File | Date | Size |
---|---|---|
Screen Shot 2015-10-07 at 11.29.08.png | 2015-10-07T14:32:54.000+0000 | 15321 |
Screen Shot 2015-10-07 at 11.31.06.png | 2015-10-07T14:34:44.000+0000 | 44203 |
SpinnerTest.js | 2018-05-09T22:39:00.000+0000 | 1537 |
SpinnerTest-bad.png | 2018-05-09T22:39:07.000+0000 | 337135 |
SpinnerTest-good.png | 2018-05-09T22:50:04.000+0000 | 321420 |
I have tested this issue. As described, the number is not in the middle of the selection indicator in picker and the another things is when I set custom height or width, it gets worse . This is a valid issue. *Test Environment*
Thanks
Hi guys, any news on this? Or is there any other way to create multi collumn picker? Thank you
*Note:* We can only reproduce this issue on Android 5.0 (aka: API Level 21) and newer OS versions... and only when selecting the row index 0 or 1.
https://github.com/appcelerator/titanium_mobile/pull/9674
FR Passed. Waiting for merge to be enabled.
PR Merged.
Closing Ticket: Verified fix in SDK Version
7.3.0.v20180613110103
Test and other information can be found at: https://github.com/appcelerator/titanium_mobile/pull/9674