Android Question Panel Elevation Problem

Nitin Joshi

Active Member
Licensed User
Hi, In my project, i make panel visible when user long press the button. Earlier panel was behind the button after its visible, I added below command to bring the panel above buttons or in front.

pnlMain.Elevation=10dip

This is working fine on my 2 mobile handsets and on Lenovo tab. However, in Samsung Galaxy tab, panel is behind the buttons.

What could be the reason for this. I tried to change the elevation to 50 dip as well
 

Sagenut

Expert
Licensed User
Longtime User
You can try using
B4X:
pnlMain.BringToFront
 
Last edited:
Upvote 0

Cableguy

Expert
Licensed User
Longtime User
Elevation is a feature of android 6 and above... (If I'm not mistaken)
To change the Z-order you should always use the BringToFront metode of the targeted control
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

Sagenut

Expert
Licensed User
Longtime User
Note: Buttons and Panel are not in same designer/Layout.
I don't understand this.
Please post a sample project that show the issue.
Use the Export as Zip function to do this.
Note that if the problem is something Samsung related I could be not able to replicate it.
 
Last edited:
Upvote 0
Top