카테고리 없음

[Kotlin] how to control every button color with colorPrimary themes.xml at once

slowbooktech 2022. 6. 19. 15:00

1. define the color name with colors.xml

1) res>> values >> colors.xml

2) designate the color

<color name="dark_gray">#636262</color>

 

2.  change the primary color 

1) res>> values> themes> themse.xml

2) i changed purple color into light gray at the primary tag

<item name="colorPrimary">@color/light_gray</item>

 

 

3. confirm the result