ActionBarSherlock - looks intersting i will look into it.

re: That still sounds like you are putting fragments in fragments.
This is the layout i'm trying to build:
<LinearLayout
android:id="@+id/linearLayout1"
android:layout_width="fill_parent"
android:layout_height="wrap_content">

<fragment
class="com.app.LeftListFragment"
android:id="@+id/left_fragment"
android:layout_weight="1"
android:layout_width="0px"
android:layout_height="fill_parent" />
<LinearLayout
android:orientation="vertical"
android:id="@+id/linearLayout2"
android:layout_height="match_parent"
android:layout_width="0dp"
android:layout_weight="1">
<FrameLayout
android:id="@+id/tab_host_fragment"
android:layout_height="fill_parent"
android:layout_width="0px"
android:layout_weight="1"></FrameLayout>
<FrameLayout
android:id="@+id/tab_content_fragment"
android:layout_height="fill_parent"
android:layout_width="0px"
android:layout_weight="1"></FrameLayout>
</LinearLayout>
</LinearLayout>

The TabHost will hold empty tabs (sort of dummy TabHost), and the actual tab
content will be in the separate fragment tab_content_fragment.
But it looks like incorrect use of tabhosts



On Mon, Sep 26, 2011 at 6:18 PM, Mark Murphy <mmur...@commonsware.com>wrote:

> On Mon, Sep 26, 2011 at 11:13 AM, Rimma Sukhovsky <drim...@gmail.com>
> wrote:
> > I did consider that, but that will cause a problem with pre 3.0 devices.
>
> Try ActionBarSherlock, then.
>
> > I thought of:
> > 1. Place the TabHost in a separate Fragment (adding each Tab an empty
> view),
> > and place the actual tab content in a second Fragment.
>
> That still sounds like you are putting fragments in fragments. If you
> want to use TabHost in a fragment, that's fine, but the tabs managed
> by that TabHost should be plain views, not views somehow ripped out of
> something else (e.g., fragment, activity).
>
> --
> Mark Murphy (a Commons Guy)
> http://commonsware.com | http://github.com/commonsguy
> http://commonsware.com/blog | http://twitter.com/commonsguy
>
> Warescription: Three Android Books, Plus Updates, One Low Price!
>
> --
> 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+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en
>

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

Reply via email to