Android Question Display sequence

nibbo

Active Member
Licensed User
Longtime User
Strange one here depending on the android version.

I have a layout with lots of buttons on it and one hidden panel.
When one of the buttons is clicked the panel is made visible and should cover all of the buttons but it is behind the buttons so they still show.
I have tried using bringtofront on the panel and sendtoback on the buttons but this has no affect.
If I change the position of the panel so it is over an image then the panel displays fine with the image behind it.
I would prefer not to have to hide all of the buttons when the panel is visible if possible for simplicity.

Anything running less than android 5 works as I would expect but 5 onwards affected by this.

Thanks
 

nibbo

Active Member
Licensed User
Longtime User
Sorry, found it.
In order to make it v5 compatible I set the theme to holo.
If anyone else has this problem just add
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
to the manifest.
 
Upvote 0

nibbo

Active Member
Licensed User
Longtime User
D'oh... I found an old thread that suggested the holo theme thing which does seem to work.
I did try the elevation but only set it to 1+; have now set it to 2+ and everything working as expected.
Many thanks as always Erel.
 
Upvote 0
Top