Android Question Theme.Holo.Light

Dey

Active Member
Licensed User
Longtime User
Hello everybody
i'm doing prpve with theme
wonder if it is possible with the Theme.Holo.Light
change color to the actionbar and navigationBar
Thank you


Code:
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, colors.xml,
<resources>
    <color name="actionbar">#ff039be5</color>               
    <color name="statusbar">#ff039be5</color>
    <color name="textColorPrimary">#FF343434</color>
    <color name="navigationBar">#FF343434</color>
</resources>
)
CreateResource(values-v20, theme.xml,
<resources>
        <style name="LightTheme" parent="@android:style/Theme.Holo.Light">
<!--    <style name="LightTheme" parent="@android:style/Theme.Material.Light"> -->
         <item name="android:colorPrimary">@color/actionbar</item>
         <item name="android:colorPrimaryDark">@color/statusbar</item>
         <item name="android:textColorPrimary">@color/textColorPrimary</item>
         <item name="android:navigationBarColor">@color/navigationBar</item>
    </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Holo.Light">
        <item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
    </style>
    <style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
        <item name="android:background">@color/actionbar</item>
    </style>
</resources>
)
 

Similar Threads

  • Locked
  • Article
Android Code Snippet [B4X] Light theme B4XDateTemplate
Replies
2
Views
9K
  • Article
Android Code Snippet Theme Colors
Replies
3
Views
31K
  • Article
Android Code Snippet Version safe themes
Replies
4
Views
13K
Top