SettingsActivity Title Front Color Change
I write on a Guild App for Android with Android Studio. And here is my problem, In my MainActivity is the title color and menu opener black: And in my SettingsActivity is the temp
Solution 1:
Try to remove android:theme="@style/AppTheme.NoActionBar" on your activity and only use
android:theme="@style/AppTheme"` on your application on manifest
And changes your theme style <style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar">
to <style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
Solution 2:
This have help me now
i have my create new Style in Style.xml
<style name="AppTheme.Settings" parent="Theme.AppCompat.Light.DarkActionBar">
<!-- Customize your theme here.-->
<item name="colorPrimary">@color/colorPrimary</item>
<item name="colorPrimaryDark">@color/colorPrimaryDark</item>
<item name="titleTextColor">@android:color/black</item>
<item name="colorAccent">@color/colorAccent</item>
<item name="windowActionBar">false</item>
<item name="windowNoTitle">true</item>
</style>
and edit in my Manifest
<activity
android:name=".settings.SettingsActivity"
android:label="@string/title_activity_settings"
android:theme="@style/AppTheme.Settings"></activity>
Post a Comment for "SettingsActivity Title Front Color Change"