Android异步加载图片详解之方式一(4)
2012-12-09 20:41
579 查看
main.xml如下:
listviewitem.xml如下:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical" android:layout_width="fill_parent" android:layout_height="fill_parent"> <ListView android:id="@+id/listView" android:layout_width="fill_parent" android:layout_height="fill_parent" android:layout_weight="1"/> <Button android:id="@+id/button" android:layout_width="fill_parent" android:layout_height="wrap_content" android:text="Clear FileCache"/> </LinearLayout>
listviewitem.xml如下:
<?xml version="1.0" encoding="utf-8"?> <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="wrap_content"> <ImageView android:id="@+id/imageView" android:layout_width="50dip" android:layout_height="50dip" android:src="@drawable/stub" android:scaleType="centerCrop"/> <TextView android:id="@+id/textView" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_weight="1" android:layout_gravity="left|center_vertical" android:textSize="20dip" android:layout_marginLeft="10dip"/> </LinearLayout>
相关文章推荐
- Android异步加载图片详解之方式二(3)
- Android异步加载图片详解之方式二(3)
- Android异步加载图片详解之方式二(2)
- Android异步加载图片详解之方式二(2)
- Android异步加载图片详解之方式二(1)
- Android异步加载图片详解之方式二(1)
- Android异步加载图片详解之方式一(4)
- Android异步加载图片详解之方式一(3)
- Android异步加载图片详解之方式一(3)
- Android异步加载图片详解之方式一(2)
- Android异步加载图片详解之方式一(2)
- Android异步加载图片详解之方式一(1)
- Android异步加载图片详解之方式一(1)
- Android:ViewPager详解(异步网络加载图片,带图片缓存,并带导航小圆点)
- android异步加载图片类(续)-universal-image-loader详解
- Android在网络异步加载图片方式总结
- Android:ViewPager详解(异步网络加载图片,带图片缓存,并带导航小圆点)
- Android异步加载数据和图片的保存思路详解
- android studio for android learning (二十一 )异步任务AsyncTask加载美女图片攻略及AsyncTask源码详解