Tôi muốn thêm Floating Action Button trên recyclerview nhưng vấn đề là khi tôi bấm vào Floating Action Nút Recyclerview mục được nhấp như thế nào để loại bỏ vấn đề nàyNhấp Floating ActionButton trên góc làm RecyclerView mục được nhấp
xem dưới đây đang
<RelativeLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".screens.ShowSubjectsFrag"
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<android.support.v7.widget.RecyclerView
android:id="@+id/MainList"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center">
</android.support.v7.widget.RecyclerView>
<android.support.design.widget.FloatingActionButton
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@android:drawable/ic_input_add"
app:layout_anchor="@id/MainList"
android:layout_margin="@dimen/fab_margin"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true" />
</RelativeLayout>
thêm thuộc tính có thể nhấp vào nút nổi xml – Amir