Tutorial to create a Pokédex app from scratch. The app uses Retrofit library to consume an API on Android. In addition to using Glide to download images.

What you'll learn

  • Consume an API or Web Service with Retrofit
  • Use a RecyclerView component in grid mode
  • Handle RecyclerView events

What you'll need

  • Know how to obtain images with Glide

1. Introduction

API (0:22)

Google Chrome Extension (1:10)

Images (1:47)

URL to obtain the images of the pokemon by their number.

http://pokeapi.co/media/sprites/pokemon/25.png

2. Retrofit

2:02 Dependency to use Retrofit in the module build.gradle

compile 'com.squareup.retrofit2:retrofit:2.1.0'

More information and Retrofit documentation.

3. The Code

The complete code: