首页 > 其他 > 详细

开源框架SmartImageView的使用

时间:2017-06-28 21:07:10      阅读:391      评论:0      收藏:0      [点我收藏+]

1.SmartImageView为一个网络图片框架,可以将一个网络URL的图片展示在UI上

2.SmartImageView使用

@1Github上下载源代码

技术分享

@2拷贝原码到工程src下

技术分享

 

@3布局配置

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    android:orientation="vertical"
    tools:context=".MainActivity">

    <com.loopj.android.image.SmartImageView
        android:id="@+id/siv"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content" />
</LinearLayout>

@4java代码

        SmartImageView  siv = (SmartImageView) findViewById(R.id.siv);
        String url = "http://192.168.199.213:8080/chushi.png";
        siv.setImageUrl(url);

 

开源框架SmartImageView的使用

原文:http://www.cnblogs.com/huipengbo/p/7091565.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!