Explore tweets tagged as #androidviewmodel
Android Best Practices: - Use Repository: The data layer should expose data using a repository. The ViewModel should access data via the repository, rather than directly interacting with data sources. - Do not use AndroidViewModel: Use the ViewModel class instead of
0
28
131
Short post explaining in detail why you should not resolve resources inside [Android]ViewModels: 🗺️Locale changes and the AndroidViewModel antipattern https://t.co/KlZKmOHJa8
11
77
250
ViewModel Live Data observers calling on rotation https://t.co/XPOLIxMMCx
#androidlivedata #androidviewmodel
0
0
0
How to keep Custom View's data in Android using ViewModel? https://t.co/41WeTvNENE
#androidviewmodel #android #kotlin
0
0
1
How can I test live data object in Android MVVM https://t.co/HeALUKDbut
#android #unittesting #androidviewmodel #kotlin #mvvm
0
0
1
How to inject viewmodel factory by dagger 2 https://t.co/hkRtqzOyjX
#dagger2 #kotlin #android #androidviewmodel
0
0
1
unresolved reference :viewModels https://t.co/cZxXV7myn6
#kotlin #kotlinandroidextensions #android #viewmodel #androidviewmodel
0
0
0
Android Kotlin : How to set error editext use Data Binding and LiveData https://t.co/Q5RnQlpdSI
#androidlivedata #androiddatabinding #androidviewmodel #kotlin #androidstudio
0
2
0
How to pass XML widget id to ViewModel? https://t.co/9L0iJ385ea
#androiddatabinding #mpandroidchart #androidviewmodel
0
0
0
Unit test the new Kotlin coroutine StateFlow https://t.co/MMrwalyZzl
#kotlin #kotlinflow #androidviewmodel #android #kotlincoroutines
0
0
0
How to corectly code a RecyclerView with ViewModel and LiveData https://t.co/yxzukWfGwN
#androidrecyclerview #java #android #androidviewmodel #androidlivedata
0
0
0
Jetpack Compose DataStore error using ViewModel, "Viewmodel has no zero argument constructor" https://t.co/qO0hPhud1m
#androidjetpackdatastore #androidjetpackcompose #android #androidjetpack #androidviewmodel
0
0
1
How can I pass parameters from View Model via Repository to the Dao https://t.co/z8rMzAgI0C
#androidroom #androidviewmodel #android #androidjetpack
0
0
0
Why doesn't my Android ViewModel's Room RxJava3 Flowable publish any result when my Activity is paused? https://t.co/wu6pdurWHG
#rxjava3 #androidroom #androidlifecycle #androidviewmodel
0
0
0
Jetpack Compose LazyColum State not Changing https://t.co/HQGgz6pfoz
#androidviewmodel #androidjetpack #androidmvvm #androidjetpackcompose
0
0
1
Android Arch Components ViewModel and LiveData trigger after screen rotation https://t.co/Bco2B3X8w4
#androidviewmodel #androidarchitecturecomponents #android #androidlivedata
0
0
0
Кек! Говорят не юзайте AndroidViewModel, чтобы во ViewModel не просачивались зависимости на Android specific компоненты. Пару плюсов есть. И спрашивается, зачем вообще создавали такой класс?! Ведь он прям вообще не просился, чтоб он был.
0
0
2
Is passing LiveData to ViewModel constructor valid? https://t.co/TMHXikdFNz
#androidviewmodel #kotlin #mvvm #androiddialogfragment #android
0
0
0
Can Hilt be used on Android with by viewModels to initialize an abstract viewModel field? https://t.co/0IekLUcPDv
#androidviewmodel #android #daggerhilt
0
0
0
My ViewModel is being recomposed on changing a mutablestate values https://t.co/8NZbm52m9x
#androidjetpackcompose #androidviewmodel #android
0
0
0