I have an editText and a button. When I click on the button the data from the edittext gets inserted into the database. On the save activity I have re ...
I have an editText and a button. When I click on the button the data from the edittext gets inserted into the database. On the save activity I have re ...
i'am trying to build an app with jetpack compose but when it's come to api call with view model i get an infinite loop. the app keep calling the api a ...
I have a simple Android Kotlin app that i am working on which involves multiple fragments communicating with one viewModel. The problem is the LiveDat ...
(For privacy purposes, I will be using very general terms) Although I can make a GET request that takes in a body and returns a boolean successfully ...
iam working on desktop wpf MVVM app contain one MainWindow containing content control that make navigation for diffrent UserControls . commands of the ...
i just need i tiny help because my second view is not updating itself. Is just have two views and the corresponding viewmodels. in ViewA i press a bu ...
Im currently injecting some SwiftUI view+viewModel files into a storyboard. The reasoning was so that in a future rewrite of the app to SwiftUI we alr ...
I have seen both patterns where you have a view model for a view and you can either pass the view model in through the init of the view or have a conf ...
I am using the following fragment to show an onboarding screen on the first launch of the application. Should I inflate my layout in onCreateView or i ...
When my aapp launched i read a pricing file method attached to the soource using viewm-model approach then display it to the datagrid. I'm trying to ...
In MVVM I was reading that the View and the Model should not know about each other. (C# example) I have the ViewModel set up such that the ViewModel ...
Writing good code between Dao - Repository - ViewModel. The function always return null value. from Entity: from Dao: from Repository: from ...
I have an unit test like this: The model field in ViewModel is populated by the request to cache in the init {} block. Each change in table would t ...
I have the following code in my view model. I'm using jetpack navigator and it work well the first time the screen is created, but when I go to ano ...
I've created a view model in Jetpack Compose, but the view doesn't refresh when a variable updates inside it. I've followed the view model guide here ...
I have a problem with my personal adapter. When I search through the Observer pattern for information in a local database, it brings me the records bu ...
I have view model and I use live data. Which one is recommended to use and why? In main thread setValue or in IO thread postValue() or in main thread ...
I have view model and I use live data in encapsulation, which one is recommended to use and why? ...
Hello everyone I am new to Jetpack Compose. Needed clarification reagarding the usage of Copy Function in kotlin Data Classes. Here i am using a Netw ...
It looks like I have problems with using Hilt. I get the following error. Maybe I need to add something to AppModule or something. I'm not sure... I ...