First i have opened fragment for taking images from camera after taking images display images on another fragment .
But my problem when i open again new fragment by adding then it display first fragment and added new fragment both
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:id="@+id/searchuserLayout"
android:background="@color/white"
android:clickable="true">
<RelativeLayout
android:id="@+id/backButtonRL"
android:layout_width="fill_parent"
android:layout_height="30dp"
android:layout_alignParentTop="true"
android:background="@color/action_bar">
<TextView
android:id="@+id/backTextView"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:gravity="left"
android:layout_marginLeft="10dp"
android:text="@string/selfie.cancel"
android:textColor="@color/white" />
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:gravity="left"
android:textStyle="bold"
android:text="@string/searchFragment_usersearch"
android:textColor="@color/black" />
<TextView
android:id="@+id/done"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:layout_centerInParent="true"
android:layout_centerVertical="true"
android:gravity="left"
android:layout_marginRight="10dp"
android:text="@string/done"
android:textColor="@color/white" />
</RelativeLayout>
<customview.ScrollDetectableListView
android:id="@+id/searchlistView"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@id/backButtonRL"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_gravity="center_horizontal"
android:layout_marginLeft="5dp"
android:layout_marginRight="5dp"
android:layout_marginBottom="5dp"
android:divider="@color/white"
android:dividerHeight="1sp"/>
</RelativeLayout>