Fragment in Dialog issue
===

I've got a simple button which launches a popup(Dialog) like this:


    AuthorizationPopup popup = new AuthorizationPopup(MainActivity.this);
    popup.addObserver(MainActivity.this);
    popup.show();

The problem is if my dialog layout contains fragment **with ID** defined it throws me the following:

> 07-16 12:51:44.435: E/AndroidRuntime(3913): Caused by:
> java.lang.IllegalArgumentException: Binary XML file line #13:
> Duplicate id 0x7f0800a6, tag null, or parent id 0x0 with another
> fragment for
> android.fragments.profile.TabletLoginFragment 07-16
> 12:51:44.435: E/AndroidRuntime(3913): 	at
> android.support.v4.app.FragmentActivity.onCreateView(FragmentActivity.java:275)
> 07-16 12:51:44.435: E/AndroidRuntime(3913): 	at
> android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:563)

Why is that so ? I've read that one fragment can't be nested into another but it's not my case.

    <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:layout_width="488dp"
    android:layout_height="wrap_content"
    android:orientation="vertical">
	
	<ImageView 
		android:layout_width="488dp"
		android:layout_height="32dp"
		android:layout_gravity="top"
		android:background="@drawable/popup_top_red"/>

	<fragment 
		android:id="@+id/tablet_login_fragmentttttt"
		android:name="fragments.profile.TabletLoginFragment"
		android:layout_width="match_parent"
		android:layout_height="wrap_content" />

	<ImageView 
        android:layout_width="488dp"
	    android:layout_height="32dp"
	    android:layout_gravity="bottom"
	    android:background="@drawable/popup_bottom_red"/>

</LinearLayout>


P.S. If I remove `android:id="@+id/tablet_login_fragmentttttt"` it starts to work but it's vital for my functionality to retain this id.

Thanks.
