https://stackoverflow.com/questions/63548323/ho...
23 авг. 2020 г. ... RemoteRepository · private LiveData ; List · RoutesResponse>> routes; public ViewModelRoutesFragment ; @NonNull Application application) { super ...
https://medium.com/@gobinda.paul.1547/using-and...
3 окт. 2023 г. ... We can define Android Viewmodel in such a way that it will be attached to a Fragment, in that case even if the Fragment gets reinitialized after being restored.
https://developer.android.com/topic/libraries/a...
10 февр. 2025 г. ... You can instantiate a ViewModel with a CreationExtras.Key from a ViewModelStoreOwner such as ComponentActivity , Fragment , or NavBackStackEntry ...
https://habr.com/ru/companies/homebank/articles...
27 дек. 2019 г. ... class MyFragment : Fragment() { private val navigationEventsObserver = Events.EventObserver { event -> when (event) { is MyFragmentNavigation.
https://vtsen.hashnode.dev/recommended-ways-to-...
17 сент. 2021 г. ... You can replace by viewModels with by ActivityViewModels if you want your ViewModel to survive in different fragments within the same activity.
https://insert-koin.io/docs/reference/koin-andr...
Important: ViewModels are created against the root Koin scope and cannot access Activity or Fragment scoped dependencies. This prevents memory leaks as ...
https://startandroid.ru/ru/courses/architecture...
28 дек. 2017 г. ... Не храните в ViewModel ссылки на Activity, фрагменты, View и пр. Это ... create(@NonNull Class<T> modelClass) { if (modelClass ...
https://mahendranv.github.io/posts/hilt-viewmodel/
28 сент. 2021 г. ... For this example, we're going to provide Profile (a POJO) to a fragment through ViewModel . For simplicity let's not use LiveData in here. This ...
https://github.com/InsertKoinIO/koin/issues/532
19 июл. 2019 г. ... I just verified the koin-android-viewmodel 2.1.0, the by viewModel() will create a new instance for each Fragment by default. To share a VM ...
https://developer.android.com/guide/fragments/c...
10 февр. 2025 г. ... ViewModel is an ideal choice when you need to share data between multiple fragments or between fragments and their host activity. ViewModel ...
【Android】KotlinにおけるActivity、Fragment間のデータの受け渡し(Bundle、ViewModel)を簡単に実装 ...
memoriainc.com
Android — Basic Hilt setup with viewmodel + fragment | Mahendran
mahendranv.github.io
ViewModel With SavedState in Android - GeeksforGeeks
www.geeksforgeeks.org
Android Fragment 간의 ViewModel 공유하기
thdev.tech
Fragment to Fragment Communication Using ViewModel
www.linkedin.com
android - Shared ViewModel between Fragments with viewPager2 - Stack ...
stackoverflow.com
Fragment to Fragment Communication in Android using Shared ViewModel ...
www.geeksforgeeks.org
Fragment to Fragment Communication in Android using Shared ViewModel ...
www.geeksforgeeks.org
How to Share Data between Fragment and Activity || Share Data using ...
www.youtube.com
YouTube • September 12, 2025 • 01:33
Learn how to create distinct ViewModels for each instance of a fragment in your Android app, ensuring they operate independently with custom fetchers. --- This video is based on the question https://stackoverflow.com/q/62340643/ asked by the user 'Evian' ( https://stackoverflow.com/u/10005095/ ) and on the answer https://stackoverflow.com/a ...
YouTube • March 19, 2023 • 46:17
Using ViewModels for lifecycle persistence and LiveData for observables to facilitate communication among Fragments and Activity Video index: 00:00 Overview 00:30 Example app overview 09:14 Feature explanation 10:22 A look at ViewModels 13:32 Implementing and Instantiating a ViewModel 17:54 A look at LiveData 20:38 Using LiveData with ViewModel ...
YouTube • March 28, 2018 • 17:35
This Kotlin on Android tutorial series describes how to pass data between Android fragments using the ViewModel. The key concepts this Kotlin on Android tutorial will cover are: 1. Installing the library for the ViewModel 2. Creating the ViewModel class 3. Using Kotlin lazy delegate for creating a ViewModel instance 4. Setting and getting ...
YouTube • September 5, 2025 • 02:38
Learn how to integrate `DataBinding` and `ViewModel` in your Android Fragments using Kotlin. This comprehensive guide walks through the necessary setup and code updates needed for a smooth implementation. --- This video is based on the question https://stackoverflow.com/q/63137897/ asked by the user 'Murad' ( https://stackoverflow.com/u ...
YouTube • September 14, 2025 • 02:15
Understanding ViewModel Data Sharing Between an Activity and Fragment ...
YouTube • October 7, 2025 • 01:52
Learn how to reuse BottomSheets in Android Fragment implementations by sharing ViewModels, reducing redundancy and enhancing code maintainability. --- This video is based on the question https://stackoverflow.com/q/62103175/ asked by the user 'hushed_voice' ( https://stackoverflow.com/u/6341943/ ) and on the answer https://stackoverflow.com/a ...