Skip to content

An Android Application to get images from Flickr API, using Dagger, Otto EventBus, and RetroFit.

Notifications You must be signed in to change notification settings

futureproofd/FlickrMVP

Repository files navigation

FlickrMVP

An Android Application project demonstrating the usage of MVP Architecture in Android framework, to efficently pull images via Flickr API:

  • There is a one-to-one relationship between the View and Presenter. (One View is mapped to one Presenter)
  • View (fragment implementation) has a reference to a Presenter. (View has no reference to the Model)

The project is using the following libraries:

  • Dagger1
  • Otto EventBus
  • RetroFit

Bitmap decoding is handled on a custom background thread that communicates with the main thread. This was decided for educational purposes only. A more manageable library such as Picasso could easily be implemented instead, into the custom PhotoAdapter.

A basic implementation of image caching is used to eliminate reoccurrance of photo downloading.

History (Clicked) photos are serialized into a json file residing on the device. This feature is adaptable to different back-end storage, which can communicate through the PhotoInteractor class.

ViewPager main screen:

Animations and Refresh

Different navigational animations and functionality (Including Refresh and fullscreen):

Animations and Refresh

Supports orientation change:

Animations and Refresh

About

An Android Application to get images from Flickr API, using Dagger, Otto EventBus, and RetroFit.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages