Create a translucent theme.

I am trying to set a child of them Theme.Wallpaper.NoTitleBar, but I want it to be only translucent. My current style is written as such:

<resources>
    <style name="CustomClear" parent="@android:style/Theme.Wallpaper.NoTitleBar">
        <item name="android:color">#F0000000</item>
    </style>
</resources>

The ultimate goal is to still be able to see the wallpaper in the background, but darken it so that the text is easier to read. Am I at least on the right track here?

+5
source share
1 answer

Figured it out. This can be achieved by editing the background property rather than the color property.

<resources>
    <style name="CustomClear" parent="@android:style/Theme.Wallpaper.NoTitleBar">
        <item name="android:background">#4000</item>
    </style>
</resources>
+3
source

All Articles