Hello, i'm learning to use the customlistview and i don't understand how to aling and place a button in a proper way the result should be something like in the attached image.
Also i cannot find where to change the background color of the customlistview!
I want to align btnask to the right, by setting left as int it will move but is that the correct way?
i don't know exactly how many dips i have in different screens.
Excuse me for so many questions and errors in code.
Thank you very much
Also i cannot find where to change the background color of the customlistview!
I want to align btnask to the right, by setting left as int it will move but is that the correct way?
i don't know exactly how many dips i have in different screens.
Excuse me for so many questions and errors in code.
B4X:
Dim textcontainer As Label
textcontainer.Initialize("")
Dim btnask As Button
btnask.Initialize("btnask")
textcontainer.text = "Name: " &name& " - "&sent_date & CRLF & gender & CRLF & "Age: "&age & CRLF &"Comment: " &comment
listpanel.AddView(btnask,300dip, 2dip, 50dip,50dip)
listpanel.AddView(textcontainer,1dip, 2dip, 300dip,300dip)
btnask.Width = 40dip
btnask.Height = 40dip
btnask.SetBackgroundImage(LoadBitmap(File.DirAssets, "askicon.png"))
textcontainer.Width = pnlbackground.Width -80
userlist.DefaultTextBackgroundColor = Colors.RGB("28","28","28") 'does not works
userlist.DefaultTextColor = Colors.Black
userlist.Add(listpanel, 90dip,"")
Thank you very much