iOS Question B4XListTemplate change selected label color

Lucas Eduardo

Active Member
Licensed User
Hello, how can i change selected label color?
And how can i give some space between customlistview and the buttons?

Thank you.
 

Attachments

  • image0.png
    image0.png
    100.5 KB · Views: 126

Erel

Administrator
Staff member
Licensed User
B4X:
ListTemplate.SelectionColor = xui.Color_Red

You can make the buttons a bit shorter:
B4X:
Dim sf As Object = Dialog.ShowTemplate(ListTemplate, "OK", "", "CANCEL")
For Each i As Int In Array(xui.DialogResponse_Positive, xui.DialogResponse_Cancel)
    Dim b As B4XView = Dialog.GetButton(i)
    b.Top = b.Top + 10dip
    b.Height = 30dip
Next
Wait For (sf) Complete (Result As Int)
 
Upvote 0
Top