android-arch-sample
android-arch-sample copied to clipboard
Sample app for MVP Architecture on Android
Delete dependence on android.os.Bundle from PresenterManager to make it clean. Move mechanism of presenter id saving to lifecycle owner (MainActivity).
Hi, I wish to ask is there some specific reason to not create the presenters in `onCreateViewHolder()` but in `MvpRecyclerListAdapter.addInternal()`? Imagine you have an adapter of 1000 items. That means...
To reproduce, add enough counters to exceed the screen size. Add a count to an item. Scroll it off screen and then back on screen. The app crashes. `05-16 09:08:20.005...
If the plus is pressed before the loading dialog disappears when opening the app, it crashes.
The `PresenterManager` class currently accepts a `Bundle` object passed via the `savePresenter(BasePresenter presenter, Bundle outState)` and the `restorePresenter(Bundle savedInstanceState)` to keep a reference of a presenter. This makes a dependency...
Question: Article says "if your View needs a reference to the Model, you are probably doing it wrong too." What if i need to show data of some model without...
Hi, In this code (from https://github.com/remind101/android-arch-sample/blob/master/app/src/main/java/com/remind101/archexample/MainActivity.java), the saved instance state may be not null (back navigation), and `PresenterManager.getInstance().restorePresenter()` may return null (the cache use an expirationValue). In this case, after...
I mean, this architecture works! But it also imports 18k methods for a skeleton app. Can we use something else for the cache that's more lightweight?
https://github.com/remind101/android-arch-sample/blob/master/app/src/main/java/com/remind101/archexample/presenters/MainPresenter.java#L64