Android Question Problem with getting rid of theme-set elevation

kostefar

Active Member
Licensed User
Longtime User
Dear All,

If I choose

B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")
for my project, I get the below:

XXD6Kx5.png


Which is good except for one little thing: The clicked items text does not change as per the below:

3QTRujY.png


Made using
B4X:
SetApplicationAttribute(android:theme, "@android:style/Theme.Material")

Which however has another problem: The elevation (shadow). I tried:

B4X:
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:

kostefar

Active Member
Licensed User
Longtime User
Upvote 0
Top