mohdosala
Member
Hey there,
I'm changing the whole theme of my app using the method that Erel has posted in this thread: Theme Colors
Here is the code of my manifest editor:
And that works perfect! But the problem is that I don't know how to change MsgBox background to "actionbar" color.
Here is the result: as you can see, the text inside the MsgBox can't be read due to its color. I'm OK with the text color to be white. Since probably it's getting its color from "textColorPrimary" I'm trying to change the background of MsgBox.
in fact I'm looking for the value which is used after the word "android".
BTW, how can I use material icon for action bar icon?
Sorry if my question got too long.
I'm changing the whole theme of my app using the method that Erel has posted in this thread: Theme Colors
Here is the code of my manifest editor:
Manifest Editor:
AddManifestText(
<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'CreateResourceFromFile(Macro, Themes.LightTheme)
SetApplicationAttribute (android:supportsRtl, true)
'End of default text.
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, colors.xml,
<resources>
<color name="actionbar">#43a047</color>
<color name="statusbar">#00701a</color>
<color name="textColorPrimary">#ffffffff</color>
<color name="navigationBar">#00701a</color>
</resources>
)
CreateResource(values, theme.xml,
<resources>
<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:itemBackground">@color/actionbar</item>
<item name="android:textColorPrimary">@color/textColorPrimary</item>
<item name="android:navigationBarColor">@color/navigationBar</item>
</style>
</resources>
)
And that works perfect! But the problem is that I don't know how to change MsgBox background to "actionbar" color.
Here is the result: as you can see, the text inside the MsgBox can't be read due to its color. I'm OK with the text color to be white. Since probably it's getting its color from "textColorPrimary" I'm trying to change the background of MsgBox.
in fact I'm looking for the value which is used after the word "android".
What to write after android:....:
<item name="android:(((MSGBOXBACKGROUNDCOLOR)))">@color/navigationBar</item>
BTW, how can I use material icon for action bar icon?
Sorry if my question got too long.