状況を説明する:
-複数の行で満たされたリストビューがあり、任意の行を取得して左右にスワイプしたい; いずれにせよ、スワイプすると現在の行の後ろに別のビューを表示する必要があります(アクションバーのあるスライドメニューのようなものですが、私の場合はそれを使用できないと思います)
たとえば、ユーザーが左にスワイプすると、新しいビューにオフセットを設定できる (または設定しない) ため、行全体をカバーする場合とカバーしない場合があります。何か提案はありますか? どうもありがとう
ランダムコード()
<ListView
android:id="@+id/lvWatchlists"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_above="@+id/relativeLayout1"
android:layout_below="@+id/header_l" >
</ListView>
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
android:background="#004c98" >
<ImageView
android:id="@+id/imageView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/donnees" />
<TextView
android:id="@+id/textView1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toRightOf="@+id/imageView1"
android:text="@string/differe"
android:textColor="@color/title_selected"
android:textSize="@dimen/footer_text" />
<TextView
android:id="@+id/maj2"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerVertical="true"
android:layout_marginRight="10dp"
android:text="00/00/00 à 00:00:00"
android:textColor="@color/title_selected"
android:textSize="@dimen/footer_text" />
<TextView
android:id="@+id/maj1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerVertical="true"
android:layout_toLeftOf="@+id/maj2"
android:text="@string/maj_le"
android:textColor="@color/title_selected"
android:textSize="@dimen/footer_text" />
</RelativeLayout>