ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • [안드로이드] Drawer 아이콘 하얀색으로 바꾸기
    카테고리 없음 2024. 6. 5. 17:55

    사용법

    아래 두 부분을 추가하면 된다.

    <resources>
        <style name="Theme.GroupFinder" parent="Theme.AppCompat.Light.NoActionBar">
            <item name="colorPrimary">@color/white</item>
            <item name="colorOnPrimary">@color/black</item>
            // 추가된 부분
            <item name="drawerArrowStyle">@style/DrawerArrowStyle</item>
        </style>
    
        // 추가된 부분
        <style name="DrawerArrowStyle" parent="Widget.AppCompat.DrawerArrowToggle">
            <item name="color">@android:color/white</item>
        </style>
    </resources>

    정상적으로 하얀색으로 바뀐걸 볼 수 있습니다.

Designed by Tistory.