When I use InputSlider with xCustomListView, I get an error changing InputSlider:
Error:
If:
I get:
How can I use Input Slider Class and xCustomListView?
B4X:
Sub InputSlider1_ValueChanged(Value As Double,UserChanged As Boolean)
Dim index As Int= CLV_Second.GetItemFromView(Sender)
End Sub
B4X:
customlistview_getitemfromview (java line: 423)
java.lang.ClassCastException: red15530.test.inputslider cannot be cast to android.view.View
B4X:
Dim index As Int = CLV_Second.GetItemFromView(Sender)
Dim pnl As Panel = CLV_Second.GetPanel(index)
Dim sb As InputSlider = pnl.GetView(6)
sb.SetValue(25)
B4X:
B4A Version: 8.30
Parsing code. (0.11s)
Compiling code. (0.28s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
Generating R file. (0.12s)
Compiling generated Java code. Error
B4A line: 369
Dim sb As InputSlider = pnl.GetView(6)
javac 1.8.0_161
src\red15530\ap\full\mod6.java:558: error: incompatible types: View cannot be converted to inputslider
_sb = (red15530.test.inputslider)(_pnl.GetView((int) (6)).getObject());
^