Android Question TabStripViewPager Error

hanyelmehy

Active Member
Licensed User
Longtime User
i was use TabStripViewPager
B4X:
Private TabStrip1 As TabStrip
TabStrip1.LoadLayout("Tlay1frm", "TAB")
it was work now i get this error
B4X:
java.lang.RuntimeException: java.lang.RuntimeException: Field clistviewtab1 was declared with the wrong type.
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:170)
    at anywheresoftware.b4a.objects.PanelWrapper.LoadLayout(PanelWrapper.java:134)
    at anywheresoftware.b4a.objects.TabStripViewPager.LoadLayout(TabStripViewPager.java:116)
    at com.aswaaq.pos.mainscreen._adjustlayout(mainscreen.java:800)
    at com.aswaaq.pos.mainscreen._activity_create(mainscreen.java:659)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
    at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
    at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
    at com.aswaaq.pos.mainscreen.afterFirstLayout(mainscreen.java:104)
    at com.aswaaq.pos.mainscreen.access$000(mainscreen.java:17)
    at com.aswaaq.pos.mainscreen$WaitForLayout.run(mainscreen.java:82)
    at android.os.Handler.handleCallback(Handler.java:739)
    at android.os.Handler.dispatchMessage(Handler.java:95)
    at android.os.Looper.loop(Looper.java:145)
    at android.app.ActivityThread.main(ActivityThread.java:5942)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1400)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1195)
Caused by: java.lang.RuntimeException: Field clistviewtab1 was declared with the wrong type.
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:430)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:453)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayoutHelper(LayoutBuilder.java:453)
    at anywheresoftware.b4a.keywords.LayoutBuilder.loadLayout(LayoutBuilder.java:148)
    ... 23 more
i use :
B4A 9.5
build with android-29
 

DonManfred

Expert
Licensed User
Longtime User
clistviewtab1 was declared with the wrong type.
remove the clv from the layout (probably it was a layout using customlistview and now you are using xcustomlistiew.) and add the clv again to the layout.
 
Upvote 0
Top