Skip to content Skip to sidebar Skip to footer

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

<stylename="AppTheme.Settings"parent="Theme.AppCompat.Light.DarkActionBar"><!-- Customize your theme here.--><itemname="colorPrimary">@color/colorPrimary</item><itemname="colorPrimaryDark">@color/colorPrimaryDark</item><itemname="titleTextColor">@android:color/black</item><itemname="colorAccent">@color/colorAccent</item><itemname="windowActionBar">false</item><itemname="windowNoTitle">true</item></style>

and edit in my Manifest

<activityandroid:name=".settings.SettingsActivity"android:label="@string/title_activity_settings"android:theme="@style/AppTheme.Settings"></activity>

Post a Comment for "Settingsactivity Title Front Color Change"