처음엔 NOACTIONBAR써서 툴바로 만들었다가 네비게이션드로어가 필요해서.. 유튜브보고 만들긴했는데
액션바 색상은 변경이 잘되는데 글자색변경하려고 구글링해보면 에러가 나거나 안되거나 둘중하나더라구요.. 어떻게 바꿔야하는건지..
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="MyTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/MyTheme.ActionBarStyle</item>
</style>
<style name="MyTheme.ActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:titleTextStyle">@style/MyTheme.ActionBar.TitleTextStyle</item>
</style>
<style name="MyTheme.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Holo.Widget.ActionBar.Title">
<item name="android:textColor">#FFC107</item>
</style>
</resources>
구글링해서 현재 이렇게 쓴건데 Caused by: java.lang.IllegalStateException: You need to use a Theme.AppCompat theme (or descendant) with this activity.
이런에러가나서 매니페스트 뭐 AppTheme.compat?바꾸라해서 바꾸면 또 그 기본애로 나오고..
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/MyTheme">
<activity android:name=".Intro">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".MainActivity">
</activity>
</application>
현재 매니페스트입니다.