내가 무엇을 하든지간에, 작업 표시 줄 텍스트가 검은 색이어서 흰색으로 바꿔야합니다.Android Lollipop에서 android 작업 표시 줄의 텍스트 색상을 변경하는 방법은 무엇입니까?
난 그냥 프로그램을 충돌, 여기 How to change action bar title color in code에서
int titleId = getResources().getIdentifier("action_bar_title", "id", "android");
TextView abTitle = (TextView) findViewById(titleId);
abTitle.setTextColor(colorId);
두 번째 대답이
<style name="AppTheme" parent="android:Theme.Holo.Light.DarkActionBar">
<item name="android:colorPrimary">@color/primary_color</item>
<item name="android:actionBarStyle">@style/AppTheme.ActionBar.TitleTextStyle</item>
</style>
<style name="AppTheme.ActionBar.TitleTextStyle" parent="@android:style/TextAppearance.Medium">
<item name="android:textColorPrimary">@android:color/white</item>
</style>
이 시도 한 첫 번째 대답은 작동하지 않습니다. 도와주세요?? 새로운 디렉토리 내부