Git Product home page Git Product logo

flickrsaver's Introduction

Flickr Saver

Sample for Seesaw Android Project.

Screenshot

Getting Started

  1. Download the code.
  2. Open the code in Android Studio.
  3. Run the app.

Strategy

  1. RecyclerView withe GridLayoutManager for displaying the images
  2. Constrain the images to be square using ConstraintLayout.
  3. Use Retrofit to query the Flickr API.
  4. GSON for parsing the JSON response into a custom Java object.
  5. Build the URL and use Glide to load the images into the RecyclerView
  6. Use a progress bar to show loading state together with Glide's RequestListener Interface.
  7. Save the instance state on rotation.
  8. Add a custom item at the end of the list which is used in BindViewHolder to load more items (the next page).
  9. Glide handles image performance and caching.
  10. Use the MediaStore content provider to save the image and make it available externally to other apps.
  11. Use a singleTop launch mode for the search activity to preserve the search when navigating back from the Detail view.

Issues

  1. When scrolling really quickly, sometimes Glide messes up the order of the items, and you have to scroll up and down to reorder correctly.
  2. No screen or feedback to show how many results left, and no informative error message if the API yields no results.
  3. No data persistence.
  4. Didn't check for backwards compat.

Potential Improvements

  1. SQLLite or SharedPreferences for persistence
  2. A lot of work could be done to make the UI more intuitive
  3. Better error handling (more informative to user)

flickrsaver's People

Contributors

ngamolsky avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.