<?xml version="1.0" encoding="utf-8"?> <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <TextView android:id="@+id/search_no_results" android:layout_width="match_parent" android:layout_height="match_parent" android:gravity="center" android:background="?attr/search_background" android:visibility="gone" /> <android.support.v7.widget.RecyclerView android:id="@+id/search_list" android:layout_width="match_parent" android:layout_height="match_parent"/> </FrameLayout>