Ich habe einen Bildschirm, der Registerkarten in meiner Android-Anwendung verwendet. Es gibt eine Linie (wie eine Grenze), die zwischen dem Tabwidget und dem Framelayout angezeigt wird. Ich möchte diese Linie loswerden, aber ich kann nicht finden, was es ist. Ich habe festgestellt, dass es Teil des FrameLayout ist, indem ich seine Sichtbarkeit auf "weg" setze. Bitte beachten Sie den Code unten:oberen Rand auf FrameLayout bei Verwendung von Tabs
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="#fb8c10"
>
<ImageView
android:id="@+id/img_confirm_header"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/confirm_header"
/>
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginBottom="0dip"
android:background="#fb8c10"
android:tabStripEnabled="false"
/>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:background="@drawable/tab_bg"
/>
</LinearLayout>
</TabHost>
Dies ist ein Link des aktuellen Layouts ist und was ich versuche http://img441.imageshack.us/g/screenshot20110116at513.png/
Das orange Layout ist meine app zu tun, und das Grau ist das, was ich Ich versuche es zu tun.
Beachten Sie, wie in der grauen Screenshot die Registerkarte in den Rahmen fließt.
Apologies für die Links, ich Bilder noch nicht veröffentlichen können: p
Dank!
danke für die Antwort, aber ich mag keine absolute Positionierung, weil ich mehrere Bildschirmgrößen anvisiere. Ich konnte das lösen, aber ich werde den Code oben veröffentlichen – jamiltao