Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-9654

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Cannot Reproduce
    • Affects Version/s: Release 2.1.0
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium Studio: 2.1.0.201206172244
      Titanium SDK: 2.1.0.v20120619164153
      Android Device: Android Tab (V3.2), Galaxy Nexus (V4.0.2), Android (V4.0.3), Android (V4.1)
      Runtime: v8

      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();
      

        Attachments

          Activity

            People

            • Assignee:
              hpham Hieu Pham
              Reporter:
              ssekhri Satyam Sekhri
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-13799
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code