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:

upload_2017-1-30_19-21-4.png


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

upload_2017-1-31_4-0-3.png

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!

upload_2017-1-31_4-49-31.png
 
Upvote 0

Similar Threads

Top