activity_fragment.xml
<FrameLayout android:id="@+id/fragment_container" xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" />
fragment_photo_gallery.xml
<?xml version="1.0" encoding="utf-8"?> <android.support.v7.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:id="@+id/photo_recycler_view" android:layout_width="match_parent" android:layout_height="match_parent" tools:context="com.bignerdranch.android.photogallery.PhotoGalleryActivity"/>