All Projects → matteocrippa → Parrot

matteocrippa / Parrot

Licence: MIT license
A simple way to handle remote image in Kotlin.

Programming Languages

kotlin
9241 projects

Projects that are alternatives of or similar to Parrot

glide-svg
Glide extension for SVG
Stars: ✭ 52 (+147.62%)
Mutual labels:  glide
SilverScreener
A feature-rich movie guide app, that lets you discover movies from TMDb.
Stars: ✭ 24 (+14.29%)
Mutual labels:  glide
NoiseView
Android library written in kotlin that add a noise effect to image.
Stars: ✭ 47 (+123.81%)
Mutual labels:  imageview
sway-lib-std
Sway standard library.
Stars: ✭ 17 (-19.05%)
Mutual labels:  fuel
WanAndroid
WanAndroidApp
Stars: ✭ 25 (+19.05%)
Mutual labels:  glide
FlickOff
A lite movie guide app, with MVVM architecture, that lets you discover movies from TMDb.
Stars: ✭ 31 (+47.62%)
Mutual labels:  glide
neon
Provides Jetpack Compose support for different image loading libraries.
Stars: ✭ 13 (-38.1%)
Mutual labels:  glide
udacity-baking-recipes
Udacity - Baking Android App
Stars: ✭ 14 (-33.33%)
Mutual labels:  glide
av.imageview
Titanium native ImageView module that extends the default Titanium ImageView with more capabilities and a different caching system.
Stars: ✭ 97 (+361.9%)
Mutual labels:  imageview
Image-Support
Add badge with counter to ImageView Android.
Stars: ✭ 128 (+509.52%)
Mutual labels:  imageview
Hibiscus
Hibiscus, mobile microblogging application.
Stars: ✭ 14 (-33.33%)
Mutual labels:  glide
CombineView
View that combines multiple images
Stars: ✭ 27 (+28.57%)
Mutual labels:  imageview
go-docker
Sample code and dockerfiles accompanying the blog post The Ultimate Guide to Writing Dockerfiles for Go Web-apps
Stars: ✭ 89 (+323.81%)
Mutual labels:  glide
flickr scraper
Simple Flickr Image Scraper
Stars: ✭ 148 (+604.76%)
Mutual labels:  image-downloader
MVVM-Demo
This demo for MVVM Design pattern for android
Stars: ✭ 20 (-4.76%)
Mutual labels:  glide
BakingApp
Udacity Android Developer Nanodegree, project 2.
Stars: ✭ 54 (+157.14%)
Mutual labels:  glide
Kriptofolio
Free open source minimalistic cryptocurrencies portfolio app for Android.
Stars: ✭ 79 (+276.19%)
Mutual labels:  glide
Trippo-The Travel Guide
Trippo is your smart travel guide - it’s free and works offline, too! You can skim through tours, locations, POIs, city walks, articles and so on. This guide will save you from a serious headache!
Stars: ✭ 28 (+33.33%)
Mutual labels:  glide
NetworkImage
Asynchronous image loading in SwiftUI
Stars: ✭ 39 (+85.71%)
Mutual labels:  image-downloader
DailyBugle
📰Modern MVVM Android application following single activity architecture which fetches news from 🕷️ news API. this repository contains some best practices ⚡ of android development
Stars: ✭ 17 (-19.05%)
Mutual labels:  glide

Parrot

A kotlin extension to load easily remote images in your ImageView.

parrot

Install

Add to gradle in allprojects

maven { url 'https://jitpack.io' }

then add this

compile 'com.github.matteocrippa:Parrot:0.0.6'

Usage

Parrot needs to be init once, passing the app context:

Parrot(context)

then provides you a simple function to tame all your needs:

ImageView.load

This function has the following parameters:

  • url, optional string with current remote image url
  • placeholder, optional bitmap placeholder or resource Id
  • caching, you can set your favorite caching system, see below
  • manipulate, optional callback returns the image before setting to your imageview, here you can tweak the image
  • onPlaceholder, optional callback returns if a placeholder has been set
  • onComplete, optional callback returns when the image has been applied to the imageview

Caching

Parrot provide an easy way to handle images caching:

  • NetOnly, default option, force always reloading from net
  • NetThenDisk, download once and use local version

Examples

Simple usage

imageView.loadImage("http://the-most-awesome-image.png")

Callback usage

imageView.loadImage("http://the-most-awesome-image.png", 
    manipulate = { bitmap ->
        // alter bitmap
        bitmap
    }, onComplete = { completed ->
        // do something
    }                                        

Credits

Icon is taken by free emojii set by Vincent Le Moign

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].