Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Nov 22, 2022. It is now read-only.
/slightPublic archive

:octocat: Easy, sample and flexible library for loading, caching and displaying images on Android. written in Kotlin

License

NotificationsYou must be signed in to change notification settings

tortuvshin/slight

Repository files navigation

Codacy BadgeminSdkVersioncompileSdkVersion

Easy, sample and flexible library for loading, caching and displaying images on Android.

How to include

With gradle: edit yourbuild.gradle:

allprojects {    repositories {...        maven { url"https://jitpack.io" }    }}dependencies {    compile'com.github.intelligo-systems:slight:1.1.3'}

Or declare it into yourpom.xml:

<repositories>    <repository>        <id>jitpack.io</id>        <url>https://jitpack.io</url>    </repository></repositories><dependency>    <groupId>com.github.intelligo-systems</groupId>    <artifactId>slight</artifactId>    <version>1.1.3</version></dependency>

How to use

Basic Usage

add the following permissions to your AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/><uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Java

@OverridepublicvoidonCreate(BundlesavedInstanceState) {  ...ImageViewimageView = (ImageView)findViewById(R.id.my_image_view);ImageLoaderimageLoader =newImageLoader(context);imageLoader.DisplayImage(url,imageView);}

Kotlin

overridefunonCreate(savedInstanceState:Bundle?) {...val imageView= findViewById(R.id.my_image_view)asImageViewval imageLoader=ImageLoader(this)    imageLoader.DisplayImage(url, imageView)}

About

:octocat: Easy, sample and flexible library for loading, caching and displaying images on Android. written in Kotlin

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Contributors5

Languages


[8]ページ先頭

©2009-2025 Movatter.jp