On Thu, Jun 30, 2011 at 11:49 AM, Yip <[email protected]> wrote:
> I'm now wondering if Fragments are the right way to go. According to
> the design I have, every tab has different fragments, none of which
> can be reused.

Fragments are primarily designed for reuse between different layout
structures for phone vs. tablet vs. TV.

> I would also like this app to work on earlier versions. I'm aware that
> Fragments are backward compatible till v4.

Yes.

> I'm also aware that there
> are extensions for the ActionBar for pre-3.0 versions.

Only third party ones, and none that support tabs AFAIK. If you see
one that supports Honeycomb-style tabs, let me know.

> My question is:
> Does it make sense to go with Fragments considering my design?

If you plan on supporting phones and tablets, unless you have a strong
reason not to, definitely use fragments.

Now, whether the contents of any given tab are represented by 1, 2,
42, or 1337 fragments depends on how that content will be organized on
the phone.

-- 
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 *Advanced* Android Development_ Version
1.9.9 Available!

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