Wednesday, March 16, 2011

[android-developers] Re: Honeycomb / ApiDemos / Fragments: ActionBarTabs activity not working

Not having a working demo with tabs is very problematic because when I
try myself, the behavior of fragments seems a little weird.
Just try changing the orientation when displaying tabs, and inspect
the view hierarchy. Each time the orientation changes, a new fragment
view hierarchy is added to the tree, but older ones are not removed.

(The sample code included in the Action Bar documentation is also
broken, the constructor name for MyTabListener is wrong. See:
http://developer.android.com/guide/topics/ui/actionbar.html#Tabs.)


On Mar 11, 3:13 pm, Clément Plantier <clemplant...@gmail.com> wrote:
> The ActionBarTabs in the Honeycomb ApiDemos does not seem to work.
> First, the theme of the activity is not set to the Holo theme, so it
> crashes because there is no action bar (getActionBar() returns null).
> I fixed this in the Manifest, but then the activity crashes when
> changing the orientation, because the fragments used are not public
> and have no empty constructor...

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