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

Android: Slider within table crash on 2.1.0 GA

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Duplicate
    • Affects Version/s: Release 2.1.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium SDK: Mobile 2.1.0 GA
      Platform OS: Android
      Platform OS Version: tested on 2.2, 2.3, 4.0

      Description

      Problem description

      When a Slider is put inside a TableView, the app crashes with the exception:

      [ERROR][TiApplication( 317)] (main) [514,514] Sending event: exception on thread: main msg:java.lang.NumberFormatException: Unable to convert java.lang.Float; Titanium 2.1.0,2012/06/28 12:16,6e3cab6 [ERROR][TiApplication( 317)] java.lang.NumberFormatException: Unable to convert java.lang.Float

      Steps to reproduce

      1. Create an app with the following code:

      var win = Titanium.UI.createWindow({ backgroudColor: '#333' });
       
      var tableview = Titanium.UI.createTableView({
      });
       
      win.add(tableview);
       
      var row = Ti.UI.createTableViewRow({
      	height: 60,
      	backgroundColor: '#6699cc' 
      });
       
      var volumeSlider = Ti.UI.createSlider({
          left:50,
          right:10,
          min:0,
          max:10,
          value:  1 * 10
      });    
      row.add(volumeSlider);
       
      tableview.setData([row]);
       
      win.open();
      

      2. Run the app using SDK 2.1.0 (both on Emulator or device): the app crashes.

      Expected result

      The app works without issues

      Additional information

      The same app works just fine if you run it using SDK 2.0.2 GA. Regression.

      Customer ticket

      http://support.appcelerator.com/tickets/APP-266717

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ngupta Neeraj Gupta
                Reporter:
                dcassenti Davide Cassenti
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code