Android Question [B4X] B4XPreferencesDialog: (Solved) How to adapt the aesthetic appearance of the dialog?

Gabino A. de la Gala

Well-Known Member
Licensed User
Longtime User
All my application is developed with orange funds and I would like to make the dialogs that I open for the introduction of the data follow that criterion. At least the superior title of the dialogue, which in blue is not aesthetic.

It would be great to know how to apply an appearance as similar as possible to the rest of the application.

Thanks and best regards
 

Attachments

  • SmartSelect_20190630-155857.jpg
    SmartSelect_20190630-155857.jpg
    154.8 KB · Views: 181

Gabino A. de la Gala

Well-Known Member
Licensed User
Longtime User
B4X:
p.Dialog.TitleBarColor = 0xFFD77004
p.Dialog.ButtonsTextColor = 0xFFD77004
Call it after the theme is set (and after you loaded the json template).

It worked perfectly!!!

B4X:
StMinDialog.Initialize(Activity, "Datos Artículo", 180dip, 120dip)
        'XUI.SetDataFolder ("")
        ' Cargo los campos definidos para el formulario
        StMinDialog.LoadFromJson( File.ReadString(File.DirAssets, "InputStMin.json"))
        ' Le doy un aspecto similar al resto de la aplicación.
        StMinDialog.Dialog.TitleBarTextColor = Colors.Black
        StMinDialog.Dialog.TitleBarColor = 0xffff9100
        StMinDialog.Dialog.ButtonsTextColor = Colors.Black
        StMinDialog.Dialog.ButtonsColor = 0xffff9100
 

Attachments

  • SmartSelect_20190630-175549.jpg
    SmartSelect_20190630-175549.jpg
    143.9 KB · Views: 174
Upvote 0
Top