Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-7433] Android: usespinner picker and titanium.UI.PICKER_TYPE_PLAIN not rendering when used together

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-03-14T08:57:29.000+0000
Affected Version/sRelease 2.0.1
Fix Version/s2013 Sprint 06
ComponentsAndroid
Labelsandroid
ReporterDevang Gandhi
Assigneejithinpv
Created2012-01-26T15:10:09.000+0000
Updated2017-03-29T17:57:04.000+0000

Description

When adding a picker to an Android option dialog a picker with properties type:"PLAIN" and useSpinner:"true" does not render. A "PLAIN" picker with useSpinner "false" works fine, as does a "DATE" picker with useSpinner "true". As a note, this combination of properties works fine in an option dialog on SDK 1.7.5. here is the code sample: var win = Ti.UI.createWindow({ backgroundColor : "white" }); var button = Ti.UI.createButton({ title : "press me", width : 100, height : 50 }); win.add(button); var picker = Ti.UI.createPicker({ useSpinner:true, type:Titanium.UI.PICKER_TYPE_PLAIN }); var data = []; data.push(Ti.UI.createPickerRow({ title : "Test", })); picker.add(data); button.addEventListener("click", function() { var dialog = Titanium.UI.createOptionDialog(); var root = Ti.UI.createView({}); var v = Ti.UI.createView({width:300, height:200}); root.add(v); v.add(picker); dialog.title = "test"; dialog.buttonNames = ['Cancel', 'OK']; dialog.androidView = root; dialog.show(); }); win.open();

Attachments

FileDateSize
app.js2012-01-26T15:10:09.000+0000708

Comments

  1. Aaron K. Saunders 2012-02-11

    i have found no combination of using useSpinner and getting the information to appear in a picker. This issue is forcing me to write my own optionDialog code.
  2. Junaid Younus 2012-05-17

    Tested with 2.0.1GA2 on a Samsung Galaxy S2, issue still exists.
  3. jithinpv 2013-03-14

    Issue does not reproduces with Titanium Studio, build: 3.0.1.201212181159 Titanium SDK version: 3.1.0 (03/11/13 15:43 0c88429) Titanium SDK version: 3.0.2 (02/07/13 16:46 a4def81) Device: Samsung galaxy s duos Android version: 4.0.4
  4. Lee Morris 2017-03-29

    Closing ticket with reference to the above comments.

JSON Source