I'm trying to inflate DialogFragment through xml like this.

<fragment
    android:id="@+id/my_id"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"
    class="com.example.MyDialogFragment" >
</fragment>

But when activity starts, an empty dialog frame is shown. When embedding 
fragment from the code - everything is fine (add or replace work good). But 
is it possible to do this from layout xml?

This is duplicate for 
http://stackoverflow.com/questions/12058766/dialogfragment-in-layout-xml

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to