1

そのレイアウトにはイメージビューがあり、その下にリストビューがあります。このレイアウトの外にもボタンがあります。ボタンをクリックすると、リストビュー アニメーションがその位置から開始し、相対的なレイアウトをカバーする必要があります。ただし、アニメーションが進行中の場合、リストビュー要素は完全には表示されません。

レイアウトファイルは以下のとおりです。

<?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>

助けてくれてありがとう。

4

0 に答える 0