Android Question How can i create something like this using CustomListView

Makumbi

Well-Known Member
Licensed User
I got this code on this platform but i what to create some thing exactly like this i got it from this link https://www.b4x.com/android/forum/threads/how-to-create-a-layout-like-this.112829/#post-704323
because this may try to addresss my problem because i want to pick the data from my database thanks
B4X:
Sub LoadOneRow(i As Int) As B4XView

    Dim p As     B4XView = xui.CreatePanel("")
    p.SetLayoutAnimated(0 ,0,0,100%x,  180dip)
 
    p.LoadLayout("OneRow")

    Label1.Text       = Label1.Text & " " & i
    Label2.Text       = "Hello xxxxxxxxxxxxxxxxxxx" & CRLF & "Next line of some annoucement text"

    Dim myDt As Long = DateTime.Now
 
    Label3.Text       = DateUtils.GetDayOfWeekName(myDt) & ", " & DateUtils.GetMonthName(myDt) & " " & DateTime.GetDayOfMonth(myDt)
    p.Tag = i
    Return p

End Sub
 

Attachments

  • PIckPaste.png
    PIckPaste.png
    70.5 KB · Views: 104
Top