-
Notifications
You must be signed in to change notification settings - Fork 0
Home
FVolodia edited this page Jan 27, 2017
·
9 revisions
Welcome to the AndroidBest wiki!
**Need to read**
https://adityaladwa.wordpress.com/2016/10/25/offline-first-reactive-android-apps-repository-pattern-mvp-dagger-2-rxjava-contentprovider/
public abstract class BasePresenter<V extends BaseView, N extends BaseNavigator> {
protected V view;
protected N navigator;
protected boolean isFragmentActive = false;
protected boolean isMainActionFinished = false;
private Action0 pendingAction;
protected void setView(V view) {
this.view = view;
}
protected void setNavigator(N navigator) {
this.navigator = navigator;
}
public void setMainAction(Action0 action){
pendingAction = action;
if (isFragmentActive){
allowAction();
} else {
isMainActionFinished = true;
}
}
public void allowAction(){
new Handler().postDelayed(() ->
pendingAction.call(),300);
}
public void onAttach() {
}
public void onStart() {
}
public void onResume() {
isFragmentActive = true;
if (isMainActionFinished){
allowAction();
}
isMainActionFinished = false;
}
public void onPause() {
}
public void onStop() {
isFragmentActive = false;
}
public void onDestroy() {
view = null;
navigator = null;
}
}JAVA Gyide
Android Gyide
- Awesome-android
- Android Examples
- CodePath Android Cliffnotes
- Google samples android architecture
- Java Design Paterns
- Common Design Patterns for Android
Google Maps
Android cheat
RxJava
Android Best article
- Configuring Android Studio by Danylyk
- 50 Android Studio Tips Android Developer
- (About) 10 Things You (Probably) Didn’t Know You Could do in Android Studio
- Custom view Android
- Custom view full process
- Configuring Android Studio
- Cards such us Duolingvo
- Circular reveal animation between Fragments
Android design
