2

RelativeLayout のボタンの上に ViewAnimator を配置しようとしていますが、できません。コードは次のとおりです。

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
          android:orientation="vertical"
          android:layout_width="match_parent"
          android:layout_height="match_parent">
<ViewAnimator
        android:id="@+id/show_picture_animator_VA"
        android:layout_alignParentTop="true"
        android:layout_above="@id/show_picture_hold_BTN"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">

</ViewAnimator>
<Button android:id="@+id/show_picture_hold_BTN"
        android:text="HOLD"
        android:textColor="#000000"
        android:background="@drawable/hold_button_shape"
        android:layout_width="@dimen/show_picture_hold_button_widht"
        android:layout_height="@dimen/show_picture_hold_button_height"
        android:layout_alignParentBottom="true"
        android:layout_centerHorizontal="true"/>
</RelativeLayout>

これにより、次のエラーが表示されます: Error:(7, -1) android-apt-compiler: [] --\res\layout\show_picture.xml:7: error: Error: No resource found that matches the given name (at ' '@id/show_picture_hold_BTN' の値を持つ layout_above')。

誰かが私を助けてくれませんか:)

4

1 に答える 1