Skip to content

Instantly share code, notes, and snippets.

@nontravis
Last active February 19, 2017 07:37
Show Gist options
  • Save nontravis/5a699cdfcaecc9b7a5e97640408136ee to your computer and use it in GitHub Desktop.
Save nontravis/5a699cdfcaecc9b7a5e97640408136ee to your computer and use it in GitHub Desktop.
Example_MainActivity
class MainActivity extends Activity{
public void calculateSomeValue(int value){
int result = getPresenter().calculate(value);
if(result > 0){
// some logic 1
}else if(result < 0){
// some logic 2
}else{
// some logic 3
}
...
}
public void clickGotoSecondActivity(){
// some logic
...
getPresenter().goToSecondActivity();
}
public void showLoading(){
// some logic
...
}
public void hideLoading(){
// some logic
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment