That is absolutely perfect! Tunderin thank you so much!
Edit4: I didn't add the view before trying to add things too it.....
Edit: I'm getting a Null Pointer Exception here pnl.AddView(lbl, 5dip, 2dip, sv.Width - 5dip, 20dip) and have no clue why, the example code works, but when I try to build the string dynamically it throws that error...
Edit2: The changes you said to make work fine in the example that comes with the customlistview library, just not my actual code.
Edit3: The Error log.
LogCat connected to: emulator-5554
** Activity (main) Create, isFirst = true **
(Main, 68) Object was already initialized. (warning #1003)
customlistview_insertattextitem (B4A line: 112)
pnl.AddView(lbl, 5dip, 2dip, sv.Width - 5dip, 20dip)
java.lang.NullPointerException
at anywheresoftware.b4a.objects.ViewWrapper.getWidth(ViewWrapper.java:125)
at b4a.example.customlistview._insertattextitem(customlistview.java:619)
at b4a.example.customlistview._addtextitem(customlistview.java:69)
at b4a.example.main._getdata(main.java:409)
at b4a.example.main._activity_create(main.java:270)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:521)
at anywheresoftware.b4a.BA.raiseEvent2(BA.java:169)
at b4a.example.main.afterFirstLayout(main.java:89)
at b4a.example.main.access$100(main.java:16)
at b4a.example.main$WaitForLayout.run(main.java:74)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:4627)
at java.lang.reflect.Method.invokeNative(Native Method)
~e: at java.lang.reflect.Method.invoke(Method.java:521)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
at dalvik.system.NativeStart.main(Native Method)