Android Question Seekbar Theme(s)

swabygw

Active Member
Licensed User
Longtime User
I applied the code found here: https://www.b4x.com/android/forum/threads/theme-colors-for-material-design.68286/ like this in the manifest:

B4X:
SetActivityAttribute(Main, android:theme, @style/CustomActTheme)
CreateResource(values, theme.xml,
<resources>
<style name="CustomActTheme" parent="@android:style/Theme.Material">
<item name="android:windowIsTranslucent">true</item>
<item name="android:windowBackground">@android:color/transparent</item>
<item name="android:windowContentOverlay">@null</item>
<item name="android:windowNoTitle">true</item>
<item name="android:backgroundDimEnabled">true</item>
<item name="android:windowFullscreen">true</item>
<item name="android:colorPrimary">#f44336</item> <!-- action bar -->
<item name="android:colorPrimaryDark">#b71c1c</item> <!-- status bar -->
<item name="android:colorAccent">#2DEA6A</item> <!-- Seekbar,, checkboxes,, switches,, etc. -->
<item name="android:textColorPrimary">#00FF00</item> <!-- ? -->
<item name="android:textColorSecondary">#FF00FF</item> <!-- inactive editText line,, scrollbar -->
<item name="android:textColor">#000000</item> <!-- menu text,, msgbox title -->
<item name="android:textColorLink">#b71c1c</item>
<item name="android:textColorHighlight">#FF9F9F</item>
</style>
</resources>
)

However, I don't get the result in that posting. Here's an image of what I get:



(I tried removing the "android:" prefix from one or two of the items but it caused an error)
How can I modify the color of items like was done in the posting?
 

swabygw

Active Member
Licensed User
Longtime User
I'm running it on an emulator on Windows 8.1. Here's my emulator config:



Platform 4.4.2, API 19 - I'm gonna try a higher-level Platform/API
 
Upvote 0

swabygw

Active Member
Licensed User
Longtime User
It worked when I changed the Platform/API to Platform 5.0.1, API 21 (like shown below). Thnx!

 
Upvote 0

Similar Threads

  • Article
Android Code Snippet Full Screen Theme
Replies
1
Views
12K
  • Article
Android Code Snippet Theme Colors
Replies
3
Views
34K
  • Article
Android Code Snippet Version safe themes
Replies
4
Views
15K
Cookies are required to use this site. You must accept them to continue using the site. Learn more…