-
Como usuário deste aplicativo, que já cadastrou um medo, eu devo ser apresentado a uma tela que me ajude a superar meus medos e alcançar meus objetivos.
## Fluxo de navegação
Esta tela deve ser a…
-
as per the tutorial i have followed, the all steps were working fine but while calling the same api twice or thrice, the data in the view model is not getting updated and user is getting the previous …
-
1.
View ViewModel Repository
의 구조를 가지고 있기 때문에 repository 내에서 RxJava를 통해 data를 불러온다고 이해를 했는데요.
그렇다면 Repository 내에서 subscribe를 통해 ViewModel에 LiveData를 넘겨주면 되는 것인지, 그렇다면 Repository에서 ViewModel을 impo…
-
## タスク
* [x] Activity経由で画面遷移している箇所をFragmentに修正する
* [x] emitをRepository内で処理し、通信結果はViewModelに渡すようにする
* [x] パッケージ構成の見直し
* [x] ファイル名、メソッド名の命名の統一
* [x] Pagingの導入
* [x] LiveDataで実装している箇所をFlowに変更
-
- The `FavoriteViewModel` class has a reference to `UserDatabase` and `FavoriteUserDao`, indicating that it is designed to handle database operations related to favorite users. However, there is no us…
-
最近巷では MVC や MVVM などの GUI アーキテクチャから、Redux や VIPER などのアプリアーキテクチャまで様々なアーキテクチャが話題になっています。どれでもいいので本プロジェクトを自分の慣れたアーキテクチャに修正してください。
※本課題は #4 の上位互換です。
-
```kotlin
switcher.setOnStateChangedListener(object : SwitchView.OnStateChangedListener {
override fun toggleToOn(view: SwitchView?) {
viewModel.doSomethingAsync(1)
}
overri…
-
# 概要
ViewModelでよくやるやつ。
変更可能な方はprivate valで宣言して、valueで変更する。
変更不可能な方はobserveで監視する。
LiveData使うと不具合が発生するから、一部変更可能な方を公開してるところある。
改めて、ViewModelでの変数の持ち方を考えてから、このissueに取り組む
# 関連するissue
# 参考
…
-
https://github.com/gastsail/CocktailApp/blob/65f3a9c776cf096a5572c52cc502a38c106b1b1d/app/src/main/java/com/g/tragosapp/data/remote/NetworkDataSource.kt#L18-27
-
C#でいうところのオブザーバーパターンのオブザーバブル
Androidのライフサイクルに対応
→アプリが起動(STARTED、RESUMED)しているときに更新が可能
LifecycleOwner