2014-12-03 7 views
2

Toolbar+NavigationDrawer테마를 사용하고 있습니다 .AppCompat. 여기 Theme.AppCompat를 사용할 때 DrawerArrow 색상을 변경하는 방법

은 내 style.xml:

<style name="BlueTheme" parent="Theme.AppCompat.Light.NoActionBar"> 
    <item name="drawerArrowStyle">@style/BlueTheme.DrawerArrowStyle</item> 
    <item name="colorPrimary">@color/primary</item> 
    <item name="colorAccent">@color/accent</item> 
    <item name="colorPrimaryDark">@color/primaryDark</item> 
</style> 

<style name="BlueTheme.DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle"> 
    <item name="color">@android:color/white</item> 
</style> 

하지만 마찬가지로 drawer arrow still has a alpha and is not solid white.

:

ScreenShot

(내가 이미지를 게시 할 수있는 충분한 명성을하지 않은 죄송합니다)

drawerArrowStyle 속성이 작동하지 않는 것 같습니다. 몇 가지 실수를했는지 궁금합니다. 내가 change the DrawerToggler to solid white?

에 할 수있는 일 :

답변

-1

툴바 위젯 제목 아래 here을 참조하십시오 (불쌍한 내 영어 용서 ...) (PS 내가 origin ActionBar It works right, 뭔가를 사용하는 경우 나 툴바에 액션 바를 교체 할 때 잘못된집니다) - 스타일 부제.

1

나는 이것이 오래되었음을 알고 있지만, 나는 똑같은 문제에 직면했다.
레이아웃 xml에 사용자 지정 도구 모음 테마를 설정하고 있습니까? 내가 도구 모음에 대한 android:theme 속성 세트가 있었을 때
당신은 drawerArrowStyle이 앱 테마로 설정되어 있지만 대신 android:theme

app:theme를 사용해야합니다, 테마 액션 바 없습니다, 그것은 작동하지 않았다.
app:theme으로 변경하면 문서화 된대로 작동하기 시작했습니다.

+0

이것이 핵심 요소였습니다. android : 테마는 L에서 작동하는 것처럼 보였지만 JellyBean의 경우 app : 테마로 전환해야했습니다. –