使用网络源码框架-图片查看器-smart-image-view
来源:互联网 发布:淘宝主板可靠吗 编辑:程序博客网 时间:2024/05/22 17:03
<span style="font-size:24px;">package com.melody.smartimageview;import com.loopj.android.image.SmartImageView;import android.app.Activity;import android.os.Bundle;import android.view.View;import android.widget.ImageView;public class MainActivity extends Activity {@Overrideprotected void onCreate(Bundle savedInstanceState) {super.onCreate(savedInstanceState);setContentView(R.layout.activity_main);}public void click(View v){SmartImageView siv = (SmartImageView) findViewById(R.id.iv);//请求网络图片siv.setImageUrl("http://192.168.119.69/dd.jpg");}}</span>
////////////////////////////////////////布局文件////////////////////////////
<span style="font-size:24px;"> <Button android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="查看网络图片" android:onClick="click"/> <com.loopj.android.image.SmartImageView android:id="@+id/iv" android:layout_width="wrap_content" android:layout_height="wrap_content" android:layout_centerInParent="true"/></span>
/////////////////////////////////记得添加限/////////////////////////////////////////////
<span style="font-size:24px;"> <uses-permission android:name="android.permission.INTERNET"/></span>
0 0
- 使用网络源码框架-图片查看器-smart-image-view
- Android-smart-image-view加载网络图片
- Androidx学习笔记(31)--- android-smart-image-view查看网络图片
- Android学习(35) -- smart-image-view 获取网络图片
- android-smart-image-view-master开源框架的使用
- android-smart-image-view图片加载简单使用
- android-smart-image-view源码分析
- android-smart-image-view源码分析
- 用Android Smart Image View做的一个网络图片浏览的Demo
- 使用开源框架smart image view实现网络资源照片设置到ImageView控件
- Android Smart Image View
- Android Smart Image View
- Android Smart Image View
- Android Smart Image View
- Android Smart Image View
- 安卓开发-利用smart-image-view来实现网络中的图片在手机上的显示
- 使用开源框架制造网络图片查看器
- Android Smart Image View使用方法--从url获取图片或从通讯录获取图片,支持缓存
- 基于Sphinx的实例解析:DISCUZ全文检索
- 【翻译】Xibo官方文档4-Ubuntu Client Installation
- 【学习C++】C++ Primer Plus (第六版)第九章编程练习1-4
- 如何在服务端插件中实现交互式的提示
- HTML5标签一
- 使用网络源码框架-图片查看器-smart-image-view
- Linux内存文件系统
- 自定义ListView
- jsp代理实现ajax跨域调用获取数据
- Mac下安装常用开发工具
- SQLITE中文编码转换问题
- VerticalLinearLayout自定义ViewGroup界面
- android 反射调用 TabLayout的非公开方法selectTab
- 21. Merge Two Sorted Lists