我有一个相对的布局,在那个布局中我有一个图像视图,下面是列表视图。我在这个布局之外还有一个按钮。当我点击按钮时,listview 动画应该从它的位置开始,它应该覆盖相对布局。但是当动画正在进行时,列表视图元素不会完全显示。
布局文件如下:
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/relativeLayout1">
<RelativeLayout
android:id="@+id/relativeLayout2"
android:layout_width="fill_parent"
android:layout_height="50dp"
android:layout_alignParentLeft="true"
android:layout_alignParentTop="true"
android:background="#FFFFFF">
<Button
android:id="@+id/button1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:layout_centerHorizontal="true"
android:text="@string/clickme" />
</RelativeLayout>
<RelativeLayout
android:id="@+id/relativeLayout3"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_below="@+id/relativeLayout2">
<ImageView android:id="@+id/imageView1" android:background="@drawable/jaguar" android:layout_width="fill_parent" android:layout_height="300dp"/>
<ListView
android:id="@+id/listView1"
android:layout_below="@+id/imageView1"
android:layout_width="match_parent"
android:layout_height="fill_parent">
</ListView>
</RelativeLayout>
</RelativeLayout>
在此先感谢您的帮助。