Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24192] Android: PickerRow.setColor is not a function

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2016-12-20T19:20:10.000+0000
Affected Version/sRelease 6.1.0
Fix Version/sRelease 6.1.0
ComponentsAndroid
Labelsn/a
ReporterFrankie Merzadyan
AssigneeGary Mathews
Created2016-12-03T03:09:44.000+0000
Updated2017-01-03T23:50:20.000+0000

Description

Android: PickerRow.setColor is not a function despite mentions in [docs](https://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.PickerRow). Issue is not seen in iOS. *TEST CASE*
try {
	var w = Ti.UI.createWindow({
				exitOnClose: true,
				layout: 'vertical',
				backgroundColor: 'black'
			}),
			p = Ti.UI.createPicker({
				top: 50
			}),
			apple = Ti.UI.createPickerRow({
				title: 'apple',
				color: 'red'
			}),
			grape = Ti.UI.createPickerRow({
				title: 'grape',
				color: 'purple'
			}),
			d = [apple, grape];
	
	apple.setColor("green");
	
	p.add(d);
	p.selectionIndicator = true;
	w.add(p);
	
	w.open();
} catch (err) {
	Ti.API.debug("test msg error " + err);
}
*EXPECTED* _apple_ color set to green and _grape_ color set to purple. *ACTUAL* Error D/TiAPI: test msg error TypeError: apple.setColor is not a function on Android and _apple_ color set to green and _grape_ color set to purple on iOS.

Comments

  1. Gary Mathews 2016-12-08

    master: https://github.com/appcelerator/titanium_mobile/pull/8669
  2. Samir Mohammed 2017-01-03

    Verified fixed, error is no longer shown and the apple color is set to green and the grape color is set to purple. *Environement*
       Appcelerator Command-Line Interface, version 6.1.0
       Android 7.1 (Google Nexus 6P)
       Operating System Name: Mac OS X El Capitan
       Operating System Version: 10.11.6
       Node.js Version: 4.6.0
       npm: 4.2.8
       Titanium SDK Version: 6.1.0.v20170103153718
       Xcode: 8.0
       Appcelerator Studio: 4.8.1.201612050850

JSON Source