Android Question Change Msgbox colors?

alexwekell

Member
Licensed User
Longtime User
Anyone know the best and easiest way to either change the color of or create a holo light msgbox with red instead of ICS blue?
 

Attachments

  • Screenshot (06_37PM, Apr 23, 2014).png
    154.1 KB · Views: 552
Last edited:

alexwekell

Member
Licensed User
Longtime User
Look at the BetterDialogs library. With it, you can create your own modal dialogs.

I tried that but couldn't get it to properly display, what am I doing wrong?

B4X:
Sub Simple2Buttons_Click

                myMsgBox.Initialize(Activity, Me, "Default", "H", 2, 95%x, 200dip, LoadBitmap(File.DirAssets, "WarningIcon.png"))

                myMsgBox.Title.Text = "Custom MsgBox v1.0"
               
                myMsgBox.Message.Color = Colors.Black
               
                myMsgBox.ShowSeparators(Colors.Red, Colors.red)
               
                myMsgBox.Panel.Color = Colors.White
               
                myMsgBox.ShowMessage("Simple box with 2 buttons, horizontal" & CRLF & "Custom separators color", "")
 

Attachments

  • Screenshot_2014-04-23-19-32-44.png
    102.1 KB · Views: 635
Upvote 0

Informatix

Expert
Licensed User
Longtime User
I don't know what's this but you're not using my library.
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…