SmartImagView的用法

来源:互联网 发布:php网页编辑软件有哪些 编辑:程序博客网 时间:2024/05/01 09:45

导入smartIamgeView开源包

<span style="font-size:18px;"> <com.loopj.android.image.SmartImageView        android:id="@+id/imageView"        android:layout_width="100dp"        android:layout_height="100dp" /></span>
<span style="font-size:18px;">代替普通的imageView组件</span>
<span style="font-size:18px;"></span>
<span style="font-size:18px;"></span>
<span style="font-size:18px;"></span>
<span style="font-size:18px;">SmartImageView<span style="white-space:pre"></span>imageView=<span style="white-space:pre"></span>(SmartImageView) convertView.findViewById(R.id.imageView);</span>
<span style="font-size:18px;">//使用SmartImageView展示网络图片,传入图片网络地址即可<span style="white-space:pre"></span>imageView.setImageUrl(list.get(position).pic);</span>


0 0
原创粉丝点击