In PhotoGalleryActivity extends change Activity to SingleFragmentActivity. Add SingleFragmentActivity, PhotoGalleryFragment, activity_fragment, fragment_photo_gallery.

Delete activity_photo_gallery.