0

我是 android 开发的新手。请帮我。 在此处输入图像描述

左图是它当前正在做的,右图是我想要的。红色 - ListView,灰色 - 相对布局的背景

4

1 回答 1

0

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:

enter image description here

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>
于 2013-11-04T22:03:28.080 回答