Android Question Activity background color problem

Discussion in 'Android Questions' started by Alberto Michelis, Jun 5, 2015.

Similar threads

B4A Tutorial TabStripViewPager - Better ViewPager
B4A Code Snippet Custom Toast Message
B4A Code Snippet Theme Colors
B4A Tutorial android.jar / targetSdkVersion / minSdkVersion
B4A Code Snippet SD: Spinner with CustomView
B4A Code Snippet Change EditText Colors
  1. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    Hi,
    I´ve trien.backgound but it does not work.
    How to fix the activivty background color to black?
    See image
     

    Attached Files:

  2. DonManfred

    DonManfred Expert Licensed User

    Set the color of the activity in designer. Otherwise export and zip your project and upload it. Without seeing code it is hard to help
     
  3. Alberto Michelis

    Alberto Michelis Active Member Licensed User

    The color is setted in the designer...

    Code:

    'Activity.LoadLayout("PortIt")
    Activity.LoadLayout("precios") ' Loads "Page1" layout file
    Activity.Title = "PortIt - Precios"
    Activity.Color = Colors.Black

    Activity.AddMenuItem("Posición","mnuPage1") ' Adds menu item mnuPage1
    Activity.AddMenuItem("Precios","mnuPage2") ' Adds menu item mnuPage2
    Activity.AddMenuItem("Favoritos","mnuPage3") ' Adds menu item mnuPage3

    sSectores.Add("Lider")
    sSectores.Add("General")
    sSectores.Add("Bonos")
    sSectores.Add("Opciones")

    Precios.Initialize(Me, "Precios")
    PanelPrecios.AddView(Precios.AsView, 0, 0, 100%x, PanelPrecios.Height)
    PanelPrecios.Visible=False
    PanelPrecios.Color=Colors.Black

    thanks
     
Loading...