Oky*_*man 4 android listview image
我想有一个图像作为listview的背景.每个项目都没有人,但是对于所有人来说,并且随着listview移动而不会移动.我该怎么做呢?
Cri*_*ian 13
我会做这样的事情:
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/the_background_image"/>
<ListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:cacheColorHint="#00000000"/>
</RelativeLayout>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8306 次 |
| 最近记录: |