Android Question How can i load "CustomListView" into a "Dialog"? [Solved]

vhd_bgh

Member
How can i load "CustomListView" into a "Dialog"?
its possible?
for example this ListView:
2020-09-18 15_06_36-dialog - B4A.png

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)
 

asales

Expert
Licensed User
Longtime User
 
Upvote 0

asales

Expert
Licensed User
Longtime User
thanks
that was perfect
Good!
Put [Solved] in your question title (item 14.a):
 
Upvote 0
Top