K kostefar Active Member Licensed User Longtime User Jul 25, 2017 #1 Dear All, If I choose Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") for my project, I get the below: Which is good except for one little thing: The clicked items text does not change as per the below: Made using Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Material") Which however has another problem: The elevation (shadow). I tried: Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Material") CreateResource(values-v21, theme.xml, <resources> <style name="AppTheme" parent="@android:style/Theme.Material"> <item name="android:elevation">0dp</item> </style> in the manifest, but the elevation stays. Any idea how to get rid of this? Thanks in advance! Last edited: Jul 25, 2017
Dear All, If I choose Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Holo") for my project, I get the below: Which is good except for one little thing: The clicked items text does not change as per the below: Made using Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Material") Which however has another problem: The elevation (shadow). I tried: Code: Copy SetApplicationAttribute(android:theme, "@android:style/Theme.Material") CreateResource(values-v21, theme.xml, <resources> <style name="AppTheme" parent="@android:style/Theme.Material"> <item name="android:elevation">0dp</item> </style> in the manifest, but the elevation stays. Any idea how to get rid of this? Thanks in advance!
Erel B4X founder Staff member Licensed User Longtime User Jul 26, 2017 #2 Don't set the theme to Theme.Holo. Your app will look old. Don't set the theme at all so the default one will be used. Which shadow do you want to remove? The one under the action bar? https://www.b4x.com/android/forum/threads/remove-material-action-bar-shadow.67640/#content Upvote 0
Don't set the theme to Theme.Holo. Your app will look old. Don't set the theme at all so the default one will be used. Which shadow do you want to remove? The one under the action bar? https://www.b4x.com/android/forum/threads/remove-material-action-bar-shadow.67640/#content
K kostefar Active Member Licensed User Longtime User Jul 26, 2017 #3 Erel said: Don't set the theme to Theme.Holo. Your app will look old. Don't set the theme at all so the default one will be used. Which shadow do you want to remove? The one under the action bar? https://www.b4x.com/android/forum/threads/remove-material-action-bar-shadow.67640/#content Click to expand... Thank you bunches - I had unset the theme after my posting but the elevation remained. But now it´s gone thanks to the javatrick, cheers! Upvote 0
Erel said: Don't set the theme to Theme.Holo. Your app will look old. Don't set the theme at all so the default one will be used. Which shadow do you want to remove? The one under the action bar? https://www.b4x.com/android/forum/threads/remove-material-action-bar-shadow.67640/#content Click to expand... Thank you bunches - I had unset the theme after my posting but the elevation remained. But now it´s gone thanks to the javatrick, cheers!