Using xml Syntax Highlighting
- <?xml version="1.0" encoding="utf-8"?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- android:orientation="vertical"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <TabHost
- android:id="@+id/tabs"
- android:layout_width="fill_parent"
- android:layout_height="fill_parent">
- <TabWidget
- android:id="@android:id/tabs"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content"/>
- <FrameLayout
- android:id="@android:id/tabcontent"
- android:layout_width="fill_parent"
- android:layout_height="wrap_content">
- <LinearLayout
- android:id="@+id/content1"
- android:orientation="horizontal"
- android:layout_width="wrap_content"
- android:layout_height="fill_parent">
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="fill_parent"
- android:text="Hello fuckin Tabs"/>
- </LinearLayout>
- </FrameLayout>
- </TabHost>
- </LinearLayout>
Parsed in 0.004 seconds, using GeSHi 1.0.8.4
Problem is, the TextView, which insults the Tabs (
) always gets displayed above the TabWidget (aka Tab Indicators) as if there would be two layers. A quick fix would be to set the padding for the FrameLayout. But I don't want to do this. I want to avoid using absolute pixel values.
i messed around with the wrap_conent and fill_parent stuff, but that didn't do the trick....
anyone got an idea? i wonder how google did it in the dialer app in the emulator. but ther's no src for this app....
plz halp! thx!


