Last active
February 19, 2017 07:37
-
-
Save nontravis/5a699cdfcaecc9b7a5e97640408136ee to your computer and use it in GitHub Desktop.
Example_MainActivity
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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