Android Question Customize B4XDialog

Sergey_New

Well-Known Member
Licensed User
Longtime User
Alexander Stolte shared a dialogue.
B4X:
    dia.BlurBackground = True  
    dia.BackgroundColor = xui.Color_ARGB(255,32, 33, 37)  
    dia.ButtonsTextColor = xui.Color_ARGB(255,20, 160, 130)
    dia.ButtonsColor = dia.BackgroundColor  
    dia.BorderWidth = 0
    dia.BorderCornersRadius = 10  
    dia.TitleBarColor = xui.Color_ARGB(255,32, 33, 37)
    dia.TitleBarTextColor = xui.Color_ARGB(255,20, 160, 130)
   
    dia.Title = "Delete"
    Dim sf As Object = dia.Show("Are you sure you want to delete this picture?","Yes", "No", "Abort")
    dia.TitleBar.GetView(0).SetTextAlignment("CENTER","LEFT")
    dia.TitleBar.GetView(0).Left = 10dip
    Dim Content As B4XView = dia.Base.GetView(dia.Base.NumberOfViews - 1)
    Content.GetView(0).Left = 10dip
    Content.GetView(0).width = Content.GetView(0).width - 5dip
Please tell me how to change the text color of the message from white to yellow?
 
Solution
Thank you! I want to clarify, but does B4XDialog have its own method to change the color of the message text? Maybe add your own template? I didn't find how to do it. :(
B4X:
 dia.BodyTextColor = Colors.Yellow
 Dim sf As Object = dia.Show("Are you sure you want to delete this picture?","Yes", "No", "Abort")

teddybear

Well-Known Member
Licensed User
Alexander Stolte shared a dialogue.
B4X:
    dia.BlurBackground = True
    dia.BackgroundColor = xui.Color_ARGB(255,32, 33, 37)
    dia.ButtonsTextColor = xui.Color_ARGB(255,20, 160, 130)
    dia.ButtonsColor = dia.BackgroundColor
    dia.BorderWidth = 0
    dia.BorderCornersRadius = 10
    dia.TitleBarColor = xui.Color_ARGB(255,32, 33, 37)
    dia.TitleBarTextColor = xui.Color_ARGB(255,20, 160, 130)
 
    dia.Title = "Delete"
    Dim sf As Object = dia.Show("Are you sure you want to delete this picture?","Yes", "No", "Abort")
    dia.TitleBar.GetView(0).SetTextAlignment("CENTER","LEFT")
    dia.TitleBar.GetView(0).Left = 10dip
    Dim Content As B4XView = dia.Base.GetView(dia.Base.NumberOfViews - 1)
    Content.GetView(0).Left = 10dip
    Content.GetView(0).width = Content.GetView(0).width - 5dip
Please tell me how to change the text color of the message from white to yellow?
B4X:
Dim cs As CSBuilder

Dim sf As Object = dia.Show(cs.Initialize.Color(Colors.Yellow).Append("Are you sure you want To delete this picture?").PopAll,"Yes", "No", "Abort")
 
Upvote 0

Sergey_New

Well-Known Member
Licensed User
Longtime User
Thank you! I want to clarify, but does B4XDialog have its own method to change the color of the message text? Maybe add your own template? I didn't find how to do it. :(
 
Upvote 0

teddybear

Well-Known Member
Licensed User
Thank you! I want to clarify, but does B4XDialog have its own method to change the color of the message text? Maybe add your own template? I didn't find how to do it. :(
B4X:
 dia.BodyTextColor = Colors.Yellow
 Dim sf As Object = dia.Show("Are you sure you want to delete this picture?","Yes", "No", "Abort")
 
Upvote 0
Solution
Top