| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- buildconfigfield
- Registering an InstanceCreator with Gson for this type may fix this problem
- NDK
- arm-linux-androideabi
- Java
- 3rd framework
- xcframework
- 3rd part
- IOS
- Eclipse
- Compose
- ndkVersion
- VM arguments
- Framework
- BindingAdapter
- mac
- Android
- Andorid
- Jetpack
- boot
- retrofit
- Chat GPT
- DispatchQueue
- EditText
- defaultconfig
- AOS
- Swift
- gradle
- Kotlin
- data binding
Archives
- Today
- Total
grape
[android][kotlin] viewmodel binding implementation 본문
viewmodel binding 할 때 필요한 implementation
implementation 'androidx.activity:activity-ktx:1.2.0'
import androidx.activity.viewModels
private val viewmodel : MainViewModel by viewModels()
ps activity-ktx 와 의존성이 있는 다른 *-ktx로 대체가 가능하다.
implementation 'androidx.activity:*-ktx:1.2.0'