<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="net.guillaume.flickrsimplesearcher.ui.ImageSearchActivity">
    <fragment
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:name="net.guillaume.flickrsimplesearcher.ui.ImageSearchFragment"
        android:id="@+id/image_search_fragment"
        tools:layout="@layout/fragment_image_search_result" />
</FrameLayout>

<merge xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    android:id="@+id/container"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context="net.guillaume.flickrsimplesearcher.ui.ImageSearchActivity">
    <fragment
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:name="net.guillaume.flickrsimplesearcher.ui.ImageSearchFragment"
        android:id="@+id/image_search_fragment"
        tools:layout="@layout/fragment_image_search_result" />
</merge>

Change to root layout to merge layout.
[ui] Change to root layout to merge layout.
