Git Product home page Git Product logo

olxpj's Introduction

OLXpj

This project was made using flickr api to get a set of images randomized based on some categories.

There are two options of first view to show based if you are already user or not the categories are showed using gridLayout with the name and a random image that shows the most viewed category bigger than the others. also the second most viewed is showed a little bit more bigger but not that most viewed,

then for each selected category is possible to see 10 pics related to that category, in this case you can select one and see the image in big measure.

the all the click count is used with a db sqlite using the native android SQLiteOpenHelper

for testing i use a simple unit testing for one model object because make unit test for the presenters is not possible because actually almost all the methods comprehend using a very complex environment mocking a creating the testing mocks for database(not recomended) and restcalls So isolated and testable i found only the data objects but it makes not so much sense and usually in best practices is not recommended do it, but is possible adding a validate method on the class for some data objects that HAVE STRICTLY RECQUIRED some properties

ARCHITECTURE: MVP (MVVM LIKE)

used only third party libraries: -retrofit (api rest calls) -glide (image download async) -jackson for Jsonparsing (i think is much better than Gson)

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.