This project provides a custom view (FamView) that require List (Defined in project) and a ReloadClickListener to handle the pull down gesture case of reloading data.
https://drive.google.com/file/d/16hYMZ2rD1i5t5IWo0q2sxFjryV7geJPZ/view?usp=sharing
-
data:
i. entity: entity classes for api response
ii. repository: RemoteRepoImpl an implementation of RemoteRepo that returns Deferred<Response>
iii. FamApi: Interface for retrofit for fetching data
iv. SharedPrefManager: Used for shared prefrences
-
di: dependency injection files
-
domain:
i. model: data classes used by FamView
ii. repository: Interface of remoteRepo
iii. Usecases: used for fetching data using repo and converting entity to model
iv. DesignTypes: used by FamView to determine type of cards
-
ui:
i.adapters: different adapters for different types of cards
ii.customView: for FamView
iii.Utils: common functions used by different adapters
iv. Fragment and activity: example of how HomeFramgnet has used Famview
Before you begin, you should have already downloaded the Android Studio SDK and set it up correctly. You can find a guide on how to do this here: Setting up Android Studio.
-
Clone the repository using HTTP: git clone https://github.com/shubhamji88/FamApp
-
Open Android Studio.
-
Click on 'Open an existing Android Studio project'
-
Browse to the directory where you cloned the repo and click OK.
-
Let Android Studio import the project.
-
Build the application in your device by clicking run button.
Shubham shankaram - shankaram.shubham8@gmail.com