Android开发中从url中加载图片
2016-03-28 01:01
309 查看
概述:
Android Smart Image View.
特点:
速度快,能缓存数据.
使用方式:
将http://loopj.com/android-smart-image-view/中的android-smart-image-view-1.0.0.jar包下载下来 , Add to Build Path.
在布局文件中添加一个Smart Image View的布局
获取图片布局
从url中加载内容
Android Smart Image View.
特点:
速度快,能缓存数据.
使用方式:
将http://loopj.com/android-smart-image-view/中的android-smart-image-view-1.0.0.jar包下载下来 , Add to Build Path.
在布局文件中添加一个Smart Image View的布局
<com.loopj.android.image.SmartImageView android:id="@+id/my_image" />
获取图片布局
SmartImageView myImage = (SmartImageView) this.findViewById(R.id.my_image);
从url中加载内容
myImage.setImageUrl("http://www.awesomeimages.com/myawesomeimage.jpg");
相关文章推荐
- android Theme使用三
- android 入门 二
- 对于android源码的忧虑
- 【转载】总结一下Android中主题(Theme)的正确玩法
- Android进阶——Socket长连接通信实例
- 【轉】Android编程之SparseArray<E>详解
- 【轉】Android音频开发(1):基础知识
- 【轉】Android平台一种快速毛玻璃虚化效果实现
- 拥抱 Android Studio 之五:Gradle 插件开发
- android提示:Gradle DSL method not found: 'android()'
- Android 开发第三方开源库
- Android 开发中不错的工具
- Android merge使用
- Android四种补间动画
- Android Studio 1.5+ 中调试Native和Java代码
- Android新手入门2016(16)--画图
- android-RecycleView的导入之旅
- Android SQLite & Trigger
- Android手机Socket连接内网打印机
- android PullToRrefresh自定义下拉刷新动画