The aim of the app is to fetch news from different wordpress websites and display in the application. While the news are displayed, the app gives you the ability to click and view each news within the app. Instead of taking you out of the app, it gives you the comfort of viewing within the app.
| Clicking on Show Favorites to Enter Favorite screen | The covered Star Icon Indicates that the Post has been Favorited |
|---|---|
| Empty Favorite Screen with no Items | OnLongPress Action on an item creates a context Menu where user can delete (1) post at a time |
|---|---|
| Favorite Screen with one Item | Empty Star Icon indicates that the post has not been favorited |
|---|---|
The resources for the icons were gotten from google icons - Commit can be found here
querying and deleting the favorite took place. I also create a FavoriteviewModel class which bridges the FavoriteRepositoryClass and the Activity.A dao was created to retrieve the data from the FavoriteTable -(A pojo class annotated with @Entity) in the database. This class was adequatey provided using dagger in the AppModuleClass.
The star icons were implemented in the NewswebPageActivity where a user can add and remove from the database.
Flexible Adapter was used to perform LongPressAction on the adapter in the Favorite Activity.
Final Commit here