Oh you can always make your top-level view in the fragment a FrameLayout or
such, and modify what is inside of it.

On Thu, Oct 27, 2011 at 9:27 PM, Dianne Hackborn <[email protected]>wrote:

> 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 <[email protected]> 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 [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
>
>
>
>
> --
> Dianne Hackborn
> Android framework engineer
> [email protected]
>
> 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.
>
>


-- 
Dianne Hackborn
Android framework engineer
[email protected]

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 [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