I applied the code found here: https://www.b4x.com/android/forum/threads/theme-colors-for-material-design.68286/ like this in the manifest:
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?
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?