Android Question [SOLVED]ULV and switch in list layout

jayel

Active Member
Licensed User
Hello,

I get following error :
B4X:
Dim cv As SwitchView = LayoutPanel.GetView(1)
javac 1.7.0_75
src\be\robotronic\robodomotica\subitems.java:471: error: inconvertible types
_cv = (be.robotronic.robodomotica.switchview)(_layoutpanel.GetView((int) (1)).getObject());
                                             ^
  required: switchview
  found:    View
I am using http://www.b4x.com/android/forum/threads/switch-view-android-4.38971/#content in a list layout with Ultimate listview.

Can somebody point me to the right direction?
 

jayel

Active Member
Licensed User
Solved by Fred (great support via mail for Ultimate listview)

B4X:
Dim cv As SwitchView
    cv.Switch = layoutpanel.GetView(1)
 
Top