ViewModel + DataBinding + LiveData + BindingAdapter build.gradle (Module: app) android { dataBinding { enabled = true } } MainViewModel.java package com.jwsoft.javaproject; import androidx.lifecycle.MutableLiveData; import androidx.lifecycle.ViewModel; public class MainViewModel extends ViewModel { public MutableLiveData liveColor = new MutableLiveData(); } BindingAdapters.java package com.jwsof..
ViewModel + DataBinding + LiveData + BindingAdapter build.gradle (Module: app) apply plugin: 'kotlin-kapt' android { dataBinding { enabled = true } } MainViewModel.kt package com.jwsoft.kotlinproject import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel class MainViewModel : ViewModel() { var liveColor: MutableLiveData = MutableLiveData() } BindingAdapters.kt package com...
- Total
- Today
- Yesterday
- Vue.js #Vue.js + javascript
- coroutine
- CoordinatorLayout
- handler
- ArrayList
- Architecture Pattern
- Android
- Livedata
- James Kim
- DataBinding
- ViewModel
- ViewPager2
- 자바
- TabLayout
- fragment
- JSONObject
- 안드로이드
- 코틀린
- Intent
- activity
- 안드로이드 #코틀린 #Android #Kotlin
- Design Pattern
- MVVM
- View
- Kotlin
- XML
- 혀가 길지 않은 개발자
- recyclerview
- JSONArray
- java
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |