Sunday, February 12, 2012

Re: [android-developers] ActionBar + Fragments

On Wed, Feb 8, 2012 at 7:29 PM, Stacy Young <stacy@uberity.com> wrote:
> but seeing
> as the outer container must be a fragment

You are mistaken.

> and the limitation of not
> being able to put fragments inside of fragments (if that assumption is
> correct)

That part is correct.

> I'm not seeing how the heck the actionbar tabs is even
> remotely useful on tablets ?!

When the user presses a tab, you replace the current fragment(s) with
different ones. That works whether the main activity area is one
fragment, two fragments, three fragments, four fragments, ..., where
the fragments can be in whatever containers you so choose (e.g.,
LinearLayout).

--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

_The Busy Coder's Guide to Android Development_ Version 3.7 Available!

--
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+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

No comments:

Post a Comment