You'd have to detach the fragment and re-attach it.  Fragments aren't really
intended to be used that way -- they represent one particular UI element.
 If you want to switch elements, you switch fragments.

On Thu, Oct 27, 2011 at 7:46 AM, raunak <raunakgu...@gmail.com> wrote:

> In the Fragment's onCreateView(inflater, container, savedInstanceState), I
> inflate one of my layouts.xml file. How do I later change the view for that
> fragment with a new xml layout?
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to android-developers@googlegroups.com
> To unsubscribe from this group, send email to
> android-developers+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en




-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

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

Reply via email to