How can i load "CustomListView" into a "Dialog"?
its possible?
for example this ListView:
i used "Dialogs library 2017" and "XUI Views".
but gives error!
B4X:
** Service (starter) Start **
** Activity (main) Create, isFirst = true **
main_activity_create (java line: 354)
java.lang.NullPointerException: Attempt to invoke virtual method 'int anywheresoftware.b4a.objects.B4XViewWrapper.getWidth()' on a null object reference
at b4a.example.main._activity_create(main.java:354)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:196)
at b4a.example.main.afterFirstLayout(main.java:104)
at b4a.example.main.access$000(main.java:17)
at b4a.example.main$WaitForLayout.run(main.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:135)
at android.app.ActivityThread.main(ActivityThread.java:5307)
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:903)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:698)
1. Create a layout file with a CustomListView. Make sure that the CLV is anchored to all sides: 2. Create the dialog: Sub Activity_Click Dim cd As CustomLayoutDialog cd.ShowAsync("Choose item", "", "", "", Null, False) cd.SetSize(100%x, 100%y) 'request maximum size Wait For...
1. Create a layout file with a CustomListView. Make sure that the CLV is anchored to all sides: 2. Create the dialog: Sub Activity_Click Dim cd As CustomLayoutDialog cd.ShowAsync("Choose item", "", "", "", Null, False) cd.SetSize(100%x, 100%y) 'request maximum size Wait For...
1. Please post the code AND the error message from the logs as TEXT within CODE TAGS. 2. Don't post images 3. Describe what the problem is (full sentences, not 3 words, not "my car doesn't work - guess what it is") 4. Use the search function FIRST (assume you're not the first person having that...