我是 android 开发的新手。请帮我。
左图是它当前正在做的,右图是我想要的。红色 - ListView,灰色 - 相对布局的背景
You will need to add a component on top of it. Here's a simple solution with a supplied arch image to cover part of the list. You will need to supply your own arch image.
Pic:
Code:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent">
</ListView>
<ImageView
android:id="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:scaleType="fitXY"
android:src="@drawable/arch" />
</RelativeLayout>