nibbo Active Member Licensed User Longtime User Oct 5, 2016 #1 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
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 Oct 5, 2016 #2 Sorry, found it. In order to make it v5 compatible I set the theme to holo. If anyone else has this problem just add Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") to the manifest. Upvote 0
Sorry, found it. In order to make it v5 compatible I set the theme to holo. If anyone else has this problem just add Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") to the manifest.
Erel B4X founder Staff member Licensed User Longtime User Oct 5, 2016 #3 This is not the correct solution. You should use the material theme on new devices. Set the panel elevation to 2+ (you can do it with the designer). Upvote 0
This is not the correct solution. You should use the material theme on new devices. Set the panel elevation to 2+ (you can do it with the designer).
nibbo Active Member Licensed User Longtime User Oct 5, 2016 #4 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
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.