Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-18363] Android: leftTrackImage on slider is not being applied

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-02-27T20:10:59.000+0000
Affected Version/sRelease 3.4.0, Release 3.4.1
Fix Version/sRelease 4.0.0
ComponentsAndroid
Labelsexalture
ReporterJamie Buckley
AssigneeIngo Muschenetz
Created2015-01-12T17:16:55.000+0000
Updated2015-03-12T21:30:24.000+0000

Description

Problem Description

Slider with left track image set still displays the default slider on android, this works on iOS.

Sample Code

var win = Titanium.UI.createWindow({
	backgroundColor : '#fff'
});
var slider = Ti.UI.createSlider({
			value : 10,
			min : 1,
			max : 10,
			left : 0,
			width : '100%',
			leftTrackImage:"0097A9-1.png",	
		});
win.add(slider);
win.open();
Image attached.

Expected Result

Custom slider should be shown

Actual Result

Default slider is shown

Attachments

FileDateSize
0097A9-1.png2015-01-12T17:16:55.000+000082

Comments

  1. Pedro Enrique 2015-02-27

    PR: https://github.com/appcelerator/titanium_mobile/pull/6669/files

    Note to QE:

    Earlier versions of the Titanium SDK implicitly enforced that both the leftTrackImage and rightTrackImage properties be specified before the properties would be honored. Beginning with Titanium SDK 4.0.0 this limitation has been removed. However it is recommended that either both or neither be specified.
  2. Lokesh Choudhary 2015-03-12

    Verified the fix. The leftTrackImage is now applied as expected on android when both the track images are not specified. Closing. Environment: Appc Studio : 4.0.0.201503062102 Ti SDK : 4.0.0.v20150312095013 CLI : 3.5.0-dev Alloy : 1.5.1 MAC Yosemite : 10.10.2 Nexus 5 - Android 5.0 Samsung S3 - Android 4.2.2

JSON Source