Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18440] Android: Picker list rows are not visible

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionCannot Reproduce
Resolution Date2015-03-09T21:40:25.000+0000
Affected Version/sRelease 4.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-4.0.0, regression
ReporterEwan Harris
AssigneeIngo Muschenetz
Created2015-01-23T19:55:02.000+0000
Updated2015-04-22T22:37:04.000+0000

Description

Description

When using a picker list the item rows are not visible, when the rows are long-pressed the item is shown very faintly. I *believe this is a regression* as it does not occur on 3.5.0.GA or 3.5.1 versions of the SDK. I am unable to reproduce the issue on 5.0 devices, so I also believe that this is OS specific. Visually the picker has changed between the SDKs too, prior to 3.6.0 the picker appears larger than in 3.6.0
var win = Ti.UI.createWindow({backgroundColor: '#fff'});
var picker = Ti.UI.createPicker({left : 80,right : 80,height : Ti.UI.SIZE,backgroundColor : '#ffffff',border : 2,borderColor : '#bbbbbb',borderRadius : 4,top : 90,bottom : 10,font : {textAlign : 'center',fontSize : '17dp',fontWeight : 'bold',color : 'black'},backgroundColor : 'black',focusable : true});
var data = [];
data[0] = Ti.UI.createPickerRow({title : 'Item 1'});
data[1] = Ti.UI.createPickerRow({title : 'Item 2'});
data[2] = Ti.UI.createPickerRow({title : 'Item 3'});
data[3] = Ti.UI.createPickerRow({title : 'Item 4'});
picker.add(data);
picker.selectionIndicator = true;
picker.setSelectedRow(0,0,false);
win.add(picker);
win.open();

Steps To Reproduce

1. Using the provided code build to a 4.x device using a 3.6.0 version of the SDK

Actual Result

The list picker rows will not be visible, when long-pressed they appear faintly.

Expected Result

The list picker rows should be visible.

Attachments

FileDateSize
Picker3.5.0.png2015-01-23T19:55:02.000+000035833
Picker3.6.0.png2015-01-23T19:55:02.000+000022614
Samsung S5.png2015-03-06T06:42:48.000+000052047
Samsung Tab 3.png2015-03-06T06:42:48.000+000018100

Comments

  1. Ashraf Abu 2015-03-06

    I'm currently using these devices:- Samsung GALAXY Tab 3 (SM-T210) - Android 4.4.2 Samsung GALAXY S5 (SM-G900F) - Android 4.4.2 I can't seem to reproduce this. Currently using master branch.
  2. Ashraf Abu 2015-03-09

    {quote} Visually the picker has changed between the SDKs too {quote} This is due to the Material design compatibility.
  3. Hieu Pham 2015-03-09

    Cannot reproduce on master. Closing.
  4. Eric Wieber 2015-03-12

    Closing. Cannot repro using: Titanium SDK 4.0.0.v20150312085017 Studio 4.0.0.201503062102 CLI 3.4.2 Xcode 6.2 Node 0.12 On: Note 2, Android 4.3

JSON Source