Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/eliseomartelli/tallymvp
A simple project I made to explain the MVP pattern to a friend
https://github.com/eliseomartelli/tallymvp
Last synced: 30 days ago
JSON representation
A simple project I made to explain the MVP pattern to a friend
- Host: GitHub
- URL: https://github.com/eliseomartelli/tallymvp
- Owner: eliseomartelli
- License: mit
- Created: 2017-09-01T14:42:19.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T16:23:49.000Z (over 7 years ago)
- Last Synced: 2024-10-30T04:07:30.533Z (2 months ago)
- Language: Java
- Size: 1.74 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TallyMVP
A simple project I made to explain the MVP pattern to a friend### Technologies/Patterns/Libraries
The pattern used for this project is MVP (Model, View, Presenter).
The Only external library, beside the support ones is [ButterKnife](http://jakewharton.github.io/butterknife/),Every part of the app of the app is isolated, so it's easily testable/maintainable.
### Screenshot
### How it works (Developer Side)
The user opens the app and then is presented with the ```TallyActivity``` that's
the only activity in this app.```TallyActivity``` implements ```ITallyView```, declares an instance of a ```TallyPresenter```
and passes to it an instance of the ```TallyModel``` and the implemented ```ITallyView```.```TallyModel``` implements ```ITallyModel```.
```TallyPresenter``` then manages all the logics.
![](resources/chart.png)
### How it works (Consumer Side)
The user opens the app.
It has 2 button.- The '+' button is used to increment the counter;
- The '-' button is used to decrease the counter;
- A long press on the counter resets everything.### License
You can find the license for this project [here](LICENSE)