Advanced image loading with Glide

1. Setup

Add the libraries to the gradle dependencies and add the Internet permission on the Manifest.


2. Setting up the Layout

Add an ImageView to your main layout and add an id reference to it.


3. Setting up the menu

Add a menu to your resources with a few menu items.


4. Using the library

Copy/paste the snippet below into the MainActivity.kt file, ideally each class/interface would all have their own file, but we'll keep it in the same one for now to keep it simple.

Send us an email with any questions or suggestions!