Android Question XUIViews Dialog.ShowTemplate options change colors

scsjc

Well-Known Member
Licensed User
Longtime User
Is possible change the background color, and text color from list options inside of dialog options ?

i use that for change some colors, but i dont see where can i change from the list
B4X:
.
.
.       
        Dialog.Initialize(Activity)
        Dialog.BlurBackground=True
        Dialog.BorderColor=xui.Color_White
        Dialog.BackgroundColor=xui.Color_White
        Dialog.ButtonsColor=Colors.Transparent
        Dialog.ButtonsTextColor=Starter.colorAccent

       Dim options As B4XListTemplate
       options.Initialize
       options.Options.Add("option 1")
       options.Options.Add("option 2")
       options.Options.Add("option 3")

        options.GetPanel(Dialog).Color=Colors.red
        options.mBase.Color=Colors.white
        options.mBase.Left = 10dip
        options.mBase.width=95%x
        options.mBase.Height=60%y
        options.mBase.Top=2%y
        options.mBase.BringToFront
        options.mBase.SetColorAndBorder(Colors.White,1dip,Colors.Black,1dip)

        Dim rs As ResumableSub = Dialog.ShowTemplate(options, "", "", "CANCEL")
        Wait For (rs) Complete (Result As Int)
.
.
.
 

scsjc

Well-Known Member
Licensed User
Longtime User
Download v1.82. B4XListTemplate.CustomListView1 is public now. You can change DefaultTextBackgroundColor and DefaultTextColor.

Also note that you can add CSBuilders to the options list.
thanks ;)
 
Upvote 0
Top