Giter Site home page Giter Site logo

android-countries's Introduction

Android-countries

Simple Android app made for practice. I used this REST API as my data provider and Retrofit as my networking library.

Note: I'm working on refactoring api calls to coroutines, but still learning how to properly test them. You can see my work so far on this branch.

App consists of 2 screens(Activity):

  • Country browser screen
  • Country detail screen

Country browser screen

This activity is based on recycler view. Unfortunately the api provides flags in SVG format, which is a bit problematic in Android. That's why I used GlideToVectorYou library to download flag images.

Of course there is a feature to search country by name, to animate this I implemented DiffUtil. Here are the screen shots of it:

list_drawing search_drawing

Clicking on country takes you to detail screen with shared element(the country flag) transition.

Country detail screen

This activity is based on ConstraintLayout. It is build on in three parts: country header with flag and name, Google maps centered on the country and some additional country info. I believe that hiding additional info part for example with swipe gesture or on map touch would massively improve the UX of this screen. Making the map bigger if needed and bringing some live to this activity. I'm looking forward to doing so, I'm just waiting for some free time.

Here is a screen shot of it:

search_drawing

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.