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
Duplicates TIMOB-9672 which is now resolved.
Closing ticket as duplicate.