Skip to content

SinguMidhun/RickyMortyApp

Repository files navigation

Ricky Morty App

The application has two activites.
1. Main Activity
2. CharacterDetails Activity

The Main activity will show all the list of characters to the user in a Grid view. We show the image, name and status of the Character. At a time as per the api request, we get 20 characters, once the user scrolls to the bottom of the recycler view, we show a button, to load more characters.

Upon clicking on the "Load More" buttom we will trigger a new api request to the surver and get the next 20 character details. I have used Card view to show details of the character in the recycler veiw.


By clicking on any character, the user will be redirected to the Character details page, in which we show more details about that character. Character data shown in the second acitivy is passed from the main activy ( We are not triggering new api request ). I am using Room Database for the "Add to favourite" feature.

Architecture

I followed MVVM architecture.

Repository


The Local Api interface is used to talk with the Room Database, while the Remote data base is used to talk to the Remote Server. I have used Retrofit for the Networking calls And i have created Network State object to keep track of the state of the network request.

View Model


We have only one view model in this project which talks to the repository to get the fetched information.


Libraries Used


Picasso : To show the character images
Retrofit : To handle the network calls to the remote server
Room : To implement the add to favourite feature

Assumptions


The app is used only in the Portrait more
The app is used only in the light mode

Because of the time restrictions i have focused more on implementing the features instead of the UI

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages