浮动操作按钮未在 RecyclerView 上显示。如何?

Floating Action Button isn't visualized on RecyclerView. How?

我想在 RecyclerView 上放置一个 FAB 以添加更多项目,但只显示没有 FAT 或我放在这里的任何内容的 de RecyclerView。这是我的代码:

<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="horizontal"
tools:context=".MainActivity">

<android.support.v7.widget.RecyclerView
    android:id="@+id/lista"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content">
    </android.support.v7.widget.RecyclerView>

<android.support.design.widget.FloatingActionButton
    android:id="@+id/btnAnadir"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    android:layout_margin="16dp"
    android:src="@drawable/ic_add_white_24dp"
    app:borderWidth="0dp"
    app:layout_anchorGravity="bottom|center"
    android:layout_gravity="right" />   

尝试使用 FrameLayout 而不是 LinearLayout 作为根布局。