<android.support.v7.widget.CardView xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="match_parent"
android:stateListAnimator="@anim/anim"
android:layout_margin="5dp"
android:clickable="true"
android:layout_height="wrap_content">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:id="@+id/textview"
android:minHeight="?android:listPreferredItemHeight"
android:gravity="center_vertical">
</TextView>
</android.support.v7.widget.CardView>
Tôi đang sử dụng CardView để hiển thị hàng văn bản. Làm cách nào để vuốt để xóa các hàng đó - đó là bản xem trước thẻ? Ngoài ra, làm thế nào để thiết lập một onItemClickListener cho mỗi hàng? Một lần nữa, tôi đang sử dụng cardview để hiển thị mỗi hàng.Cách vuốt để xóa Thẻ (sử dụng CardView của appcompat v7)