Sub CheckBox1_CheckedChange(Checked As Boolean)
Dim index As Int = CLV1.GetItemFromView(Sender)
Dim pnl As B4XView = CLV1.GetPanel(index)
Dim xgau As xGauges = pnl.GetView(index)
xgau.Value= 50
would give a 'Types do not match warning' and a 'java.lang.RuntimeException: Field: ba not found in: android.widget.CheckBox' error
Tx. The needle is now rotating to the new value. However properties like GaugeTitle or GaugeUnit are not dynamically taking on new values:
B4X:
Sub CheckBox1_CheckedChange(Checked As Boolean)
Dim index As Int = CLV1.GetItemFromView(Sender)
Dim pnl As B4XView = CLV1.GetPanel(index)
Dim xgau As xGauges = pnl.GetView(index)
xgau.Value= 50 'working
xgau.GaugeTitle="Consumption" 'not working
xgau.GaugeUnit= "Kwh" 'not working