Android 1.6 TabHost inside a Fragment -


In the demo, tabs and tab pagers extend fgettactivity in both instances. Each tab content is a piece, not a real success The tabactivity was used without the introduction of pieces.

Now inside my activity, a screen part is a widget named widgetfraagment. Is it possible to include a TabHost for WidgetFragment? Visualize the mini-tabhost contained in an activity I tried doing all possible ways to insert a TabHost into a FragmentActivity inside a piece.

After the text

In generally accepted practices, the tabs fit the entire screen. Most people (including me) are unaware, the tab can be placed anywhere in a place like a simple view, LIVEview. The move is to include your tabhost in another layout. When you create TabHost, always keep these IDs: TabHost, tabs, tab content

In your main layout, include your tab host.xml Android = "http://schemas.android.com/apk/res/android" Android: layout_width = "fill_parent" Android LinearLayout xmlns; Here I am between

  & TabHost Center: Layout_height = "fill_parent" Android: orientation = "vertical" & gt; & Lt ;! - Fill what you need - & gt; & Lt; FrameLayout Android: id = "@ + id / widget_fragment" Android: layout_centerVertical = "true" Android: layout_centerHorizontal = "true" Android: layout_height = "wrap_content" android: layout_width = "wrap_content" & gt; & Lt; Layout = "@ layout / tabhost" /> & Lt; / FrameLayout & gt; & Lt; / LinearLayout & gt; Examples of tabs and tabs look well in Support4Demos, TabHost is still managed by FragmentActivity. Each tab is a piece of content with TabActivity, it's a tab anywhere  

In the end it is not possible to do it, like this

Enter image details here

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -