loopj/android-smart-image-view
关于
Android ImageView 的替代组件,支持从 URL 或联系人地址簿加载图片,并提供缓存功能
设计与媒体可以做什么
- Drop-in replacement for ImageView
- Load images from a URL
- Load images from the phone's contact address book
- Asynchronous loading of images, loading happens outside the UI thread
实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- -1
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文Android Smart Image View
Overview
SmartImageView is a drop-in replacement for Android's standard ImageView which additionally allows images to be loaded from URLs or the user's contact address book. Images are cached to memory and to disk for super fast loading.
Features
- Drop-in replacement for
ImageView - Load images from a URL
- Load images from the phone's contact address book
- Asynchronous loading of images, loading happens outside the UI thread
- Images are cached to memory and to disk for super fast loading
SmartImageclass is easily extendable to load from other sources
Installation & Basic Usage
Download the latest .jar file from github and place it in your Android app's libs/ folder.
Add a SmartImageView to your activity's xml layout:
<com.loopj.android.image.SmartImageView android:id="@+id/my_image" />
Get a reference to the layout's SmartImageView:
SmartImageView myImage = (SmartImageView) this.findViewById(R.id.my_image);
Load an image into the view from a URL:
myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");
Load an image into the view from the phone's contact address book:
myImage.setImageContact(contactAddressBookId);
Reporting Bugs or Feature Requests
Please report any bugs or feature requests on the github issues page for this project here:
https://github.com/loopj/android-smart-image-view/issues
License
The Android Smart Image View is released under the Android-friendly Apache License, Version 2.0. Read the full license here:
探索相关项目
加载中…