Code Monkey home page Code Monkey logo

plungimagesearchapp's Introduction

Plung - Image Search App

Sample project with latest android technologies.
Requirement list: https://drive.google.com/file/d/1Hr6byNKANnNFdzLoi10H7sVbJUpq76kN/view?usp=sharing

Features

  • Image list will be loaded on the start
  • Image can be searched by using search button with to top-right corner with any keywords like: cats, dogs, etc. and tap search from keyboard
  • Data caching mechanism added to the search and API responses
  • User can update the span count of the grid list from options menu end of Search icon by inputting desired span count (no more than 5 for UI sake) without calling further API call
  • When the image is tapped, a full screen detail page with that image (in actual ratio) will open up with a smooth Shared Transition animation.
  • After tapping on the back, the reverse trasition can be shown afterward.
  • Searching with a keyword during NETWORK_DISCONNECTED, user can simply tap on retry button to resume their search after NETWORK_CONNECTION restored.
  • Infinity scroll has been enabled to the photo list or the Gallery page
  • Offline caching with persistance data

Used Tools

  • MVVM architecture
  • Coroutines used for all the asynchronous work and caching mechanism
  • Unit testing(used Mockito, Junit)
  • Hilt for dependency injection
  • Gson to parse the json
  • Diffutils callback with RecyclerView Adapter to optimise reload in data set change
  • Navigation, ViewModel, LiveData, etc. from Jetpack components
  • SearchView and Search Query Listener to search image
  • Shared Transition between starting from gird and ends to the details page
  • Room Database for network data caching mechanism

Excluding bonus requirement

  • Bonus #2:
    Once on the full screen activity the user can swipe left/right to see the next/previous images. The reverse shared element transition should respect the current image visible on the full screen.

plungimagesearchapp's People

Contributors

sam43 avatar

Watchers

 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.