Android Question Panel frame not shown

rscheel

Well-Known Member
Licensed User
Longtime User
I have problems loading data inside a panel designed in the designer with elevation 2, when loading a layout from code disappears the panel frame and elevation.



B4X:
Sub spMovimiento_ItemClick (Position As Int, Value As Object)
    PanelLoadLayout.RemoveAllViews
    If Value == "Instalación" Then
        PanelLoadLayout.LoadLayout("LayoutInstalacion")
        spCodGPS.Clear
        CargaDatosGpsInst
    End If
    If Value == "Cambio" Or Value == "Revisión" Or Value == "Retiro" Then
        PanelLoadLayout.LoadLayout("LayoutCambio")
    End If
    If Value == "Seleccionar" Then
        PanelLoadLayout.RemoveAllViews
    End If
End Sub

Your help is appreciated.
 

rscheel

Well-Known Member
Licensed User
Longtime User
It is not related to the elevation.

It is hard to say more without seeing the layout files. Make sure that there is no panel in the layout files that hides the parent panel.

I share images of the designer, I do not charge a panel over another, also say that this happens to me with android 7.1.1, with android 6.0.1 works well.

 
Upvote 0

rscheel

Well-Known Member
Licensed User
Longtime User
If you use "File - Export as zip" then the zip file size will be 11kb.

When you load a layout to a panel it sets the panel's color from the layout top control (activity). You need to set it to be the same color:

I see, an error I was quite stupid, I had not noticed it, thank you for your help.

And the zip export, now I just realize that there is that option in file.

Thanks for everything.

Sorry my English
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…