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

Discussion in 'Android Questions' started by Gabino A. de la Gala, Jun 30, 2019.

  1. Gabino A. de la Gala

    Gabino A. de la Gala Active Member Licensed 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
     

    Attached Files:

  2. Erel

    Erel Administrator Staff Member Licensed User

    Code:
    p.Dialog.TitleBarColor = 0xFFD77004
    p.Dialog.ButtonsTextColor = 
    0xFFD77004
    Call it after the theme is set (and after you loaded the json template).
     
  3. Gabino A. de la Gala

    Gabino A. de la Gala Active Member Licensed User

    It worked perfectly!!!

    Code:
    StMinDialog.Initialize(Activity"Datos Artículo"180dip120dip)
            
    '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
     

    Attached Files:

Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice