Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Popup menu background color
- todo
- 기기고유값
- 화면 회전
- Collections Function
- gradle plugin
- kotlin
- SSAID
- log
- layout_constrainedWidth
- ThreeTen Backport
- http
- studywithme
- layout_constrainedHeight
- WorkManager
- RecyclerView
- BottomSheetDialogFragment
- Load failed
- 생명주기
- json
- Room
- DialogFragment
- DataBinding
- Navigation
- Lifecycle
- Retrofit2
- NumberPIcker
- findNavController
- Android
- multipart
Archives
- Today
- Total
chacha's
🎨 Number/Time Picker Divider 색상 변경 본문
android kotlin - NumberPicker divider color
를 참고하였습니다.


NumberPicker도 TimePicker와 동일하게 적용하면 Divider의 색상이 변경됩니다.
<!-- NumberPicker 색상 변경 -->
<style name="Theme.AppTheme" parent="Theme.MaterialComponents.DayNight.NoActionBar">
<!-- Primary brand color. -->
<item name="colorPrimary">@color/purple_500</item>
<item name="colorPrimaryVariant">@color/purple_700</item>
<item name="colorOnPrimary">@color/white</item>
...
</style>
<style name="ThemeOverlay.NumberPicker" parent="Theme.AppTheme">
<!-- NumberPicker divider color -->
<item name="colorControlNormal">@color/Light_800</item>
</style>
Divider color를 변경하고 싶은 xml 파일에서 theme 속성에 적용시켜줍니다.
<TimePicker
...
android:theme="@style/ThemeOverlay.NumberPicker"/>
'Android > TIL' 카테고리의 다른 글
| 🕶 Glide 이용할 때 Http URL 사용 시 화면 안 보임 (0) | 2021.08.07 |
|---|---|
| 🔀 Dialog에서 findNavController 접근 못 하는 문제 (0) | 2021.06.16 |
| 💣 Button에 Drawable 적용 안 되는 오류 (1) | 2021.06.14 |
| 🧨 [ NumberPicker - Error : ] ArrayIndexOutOfBoundsException (0) | 2021.06.13 |
| 🔨 Hide DatePicker Header (0) | 2021.06.11 |
Comments