[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 Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2012-11-05T19:15:12.000+0000 |
Affected Version/s | Release 2.1.0 |
Fix Version/s | 2012 Sprint 23 API, 2012 Sprint 23 |
Components | Android |
Labels | api, qe-and060112 |
Reporter | Satyam Sekhri |
Assignee | Hieu Pham |
Created | 2012-06-20T00:36:14.000+0000 |
Updated | 2013-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();
Cannot reproduce on latest master.
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