<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:orientation="horizontal"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <fragment android:name="com.nutomic.ensichat.fragments.ContactsFragment"
        android:id="@android:id/primary"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</LinearLayout>

<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">

    <fragment class="com.nutomic.ensichat.fragments.ContactsFragment"
        android:id="@android:id/primary"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

</FrameLayout>

Use proper tags for fragment layout.
Use proper tags for fragment layout.
