Android Question B4XPages: Any Examples in the Horizon for B4XTable, xCLV, xChart and SQLite

Mahares

Expert
Licensed User
Longtime User
I gauge my level of knowledge of B4X by my use of B4XTable, xCLV, xChart and Sqlite. It will be great if there are examples of each of the four using the new B4XPages. Until then, I am having a difficult time conceptualizing B4XPages.
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
There is nothing special that needs to be done to use these features with B4XPages. Just move the code to the class.

Example with CLV:
B4X:
'B4XMainPage
Sub Class_Globals
    Private Root As B4XView 'ignore
    Private xui As XUI 'ignore
    Private CustomListView1 As CustomListView
End Sub

Public Sub Initialize

End Sub

Private Sub B4XPage_Created (Root1 As B4XView)
    Root = Root1
    Root.LoadLayout("1")
    For i = 1 To 100
        CustomListView1.AddTextItem(i, i)
    Next
End Sub

Always start with the template project.
 
Upvote 0
Top