You don't need to be a fragment to participate in the action bar tabs, they
just let you do that as a convenience.  They are just calling back to you
when the tabs are changed.  They make it easy to at that point switch
fragments, but you can just as well switch views.

I'd prefer to not start introducing dependencies on fragments for doing
basic UI stuff.  The app package has always been layered on top of view and
widget, and that is a good thing.

On Thu, Jul 28, 2011 at 9:30 AM, Mark Murphy <[email protected]>wrote:

> On Thu, Jul 28, 2011 at 12:26 PM, nadam <[email protected]> wrote:
> > Another option is to skip the ListFragment and use a ListView directly
> > instead. You only need to use ListFragment if the same list (and
> > related logic) should be displayed in two different activities.
>
> Or if the list needs to be a Fragment for other reasons (e.g., to
> participate in the tab navigation in the action bar). Right now, there
> are few of these, but I suspect that there will be more of those
> Fragment dependencies in the future.
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Android Training in NYC: http://marakana.com/training/android/
>
> --
> 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.

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