Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9654] Android: Slider: Setting slider max value greater than 1 shows slider at zero irrespective of value set - on Android Honeycomb and ICS

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionCannot Reproduce
Resolution Date2012-11-05T19:15:12.000+0000
Affected Version/sRelease 2.1.0
Fix Version/s2012 Sprint 23 API, 2012 Sprint 23
ComponentsAndroid
Labelsapi, qe-and060112
ReporterSatyam Sekhri
AssigneeHieu Pham
Created2012-06-20T00:36:14.000+0000
Updated2013-11-07T18:49:43.000+0000

Description

Creating a slider control with max value greater than one, shows the slider at value zero by default, irrespective of the value set for the slider. Not a regression. The issue also occurs on 2.0.2 The issue occurs on Android version 3.2 and 4.0.2 but does not occur on Android 2.2 and 2.3 (which behave like iOS). Steps to reproduce: 1. Create an application with code below 2. Launch the application Actual: The slider is shown at value zero. Expected: The slider should be shown at position respective to value and min and max defined.
Ti.UI.setBackgroundColor('white');
var win = Ti.UI.createWindow();

var volumeSlider = Ti.UI.createSlider({
	left:10, right:10, bottom:10,
	value: 1, min: 0, max: 2,
});
win.add(volumeSlider);

win.open();

Comments

  1. Hieu Pham 2012-11-05

    Cannot reproduce on latest master.
  2. Paras Mishra 2013-04-11

    Works as expected, can't reproduce. Verified on: Device: Samsung tablet , Android version: 3.2 Device: Samsung S3, Android version: 4.0.4 SDK: 3.1.0.v20130409124549 CLI version : 3.1.0-cr OS : MAC OSX 10.7.5 Appcelerator Studio, build: 3.1.0.201304052347 XCode : 4.5.1

JSON Source