RelativeLayout に含まれるイメージビューがあります。imageview がクリックされると、RelativeLayout 全体を移動アニメーションでアニメーション化して下に移動します。
イメージビューを(新しい場所で)もう一度クリックすると、元に戻るはずですが、そうではありません。ただし、イメージビューが開始された場所をクリックすると、「パネル」全体が元に戻ります。イメージビューが相対的なレイアウトで動かないのはなぜですか...少なくともクリックできる限り。実際の画像は動いていますが、クリックできる場所は動いていません。
レイアウト用の私のxmlは次のとおりです。
<RelativeLayout
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
android:layout_width="fill_parent"
android:layout_height="120px"
android:layout_marginTop="-106px"
android:id="@+id/chatbox"
android:visibility="invisible">
<TextView
android:layout_width="fill_parent"
android:layout_height="106px"
android:background="#000000"
android:id="@+id/chattext" />
<ImageView
android:layout_width="20px"
android:layout_height="14px"
android:id="@+id/chatbubble"
android:layout_below="@id/chattext"
android:src="@drawable/chatbubble" />
</RelativeLayout>
編集: Animation.setFillAfter(true) を使用して、アニメーションの完了後にパネルを所定の位置に保持していることを追加する必要があります。