반응형
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 |
Tags
- ARGB
- powercfg
- setBackgroundResource
- 온라인에디터
- Android Studio 3.6
- 광 센서
- 회전 센서
- 걸음수 감지 센서
- 코틀린
- Exoplayer
- lateinit
- 온라인IDE
- Aplha
- 온라인코딩
- 동영상 실행
- 걸음 감지 센서
- phpstorm
- 자격증
- 금속 탐지기 센서
- BottomSheetDialog
- RecyclerView
- Android
- utf8mb4
- LayoutParmas
- 웹코드빌드
- Kotlin
- 온라인무료코딩사이트
- mysql 5.7
- 자기장 센서
Archives
- Today
- Total
목록setBackgroundResource (1)
Memory
[ANDROID/KOTLIN] 배경 색상 코드로 수정하기 (setBackgroundResource)
fun setBackground(data: ItemListMonitoring_Data){ // 배경 색상 코드로 설정하는 방법 // 변수명.setBackgroundResource(R.drawable.파일명) when (data.status){ "이탈" -> { constraintL_item_list_monitoring.setBackgroundResource(R.drawable.draw_f8420b_ba3710_8dp_rounded_border) } "정상" -> { constraintL_item_list_monitoring.setBackgroundResource(R.drawable.draw_5bc63a_3daa2f_8dp_rounded_border) } "종료" -> { constraintL_item_l..
IT/ANDROID
2021. 1. 12. 10:00