This is a common question and for a good reason. Custom views classes are not views by themselves. The views tree only holds views. This means that this code cannot work: Dim B4XFloatTextField1 As B4XFloatTextField = CLV.GetPanel(x).GetView(y) The actual view that is added to the views tree...
www.b4x.com
B4X:
Dim B4XFloatTextField1 As B4XFloatTextField = CLV.GetPanel(x).GetView(y) '<--ไม่สามารถทำงานได้
จำเป็นต้องเขียน
B4X:
Dim B4XFloatTextField1 As B4XFloatTextField = CLV.GetPanel(x).GetView(y).Tag '<--สามารถทำงานได้
ตัวอย่างการใช้งาน
B4X:
Activity.LoadLayout("1")
clv.AsView.Tag = clv
'เราจึงจะสามารถแยกแยะ Custom View ได้
Dim c As CustomListView = Activity.GetView(<clv index>).Tag