Tuesday, April 19, 2011

[android-developers] Using v4 Fragments with v11 ActionBar tabs

I'm having trouble implementing ActionBar tabs whilst also using
backward-compatible Fragments (with the compatibility package).

The main issue being that ActionBar.TabListener expects
android.app.Fragment, and my Fragment classes inherit from
android.support.v4.app.Fragment. Therefore I can't use my Fragments
with the ActionBar on 3.0-and-later devices.

Anyone have any ideas how I can solve or work around this? (besides
just not using tabs)

-dave

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

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate