<FrameLayout
android:id="@+id/FrameLayout02"
android:layout_height="fill_parent"
android:layout_width="fill_parent"
>
<TabHost android:id="@+id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<TabWidget android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<FrameLayout android:id="@android:id/tabcontent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:paddingTop="62px">
<EditText
android:id="@+id/VisualPane"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
<EditText
android:id="@+id/HTMLPane"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
/>
</FrameLayout>
</TabHost>
</FrameLayout>
我怎样才能减少这个距离?
我尝试更改属性
android:paddingTop="62px"
但是没用。
最佳答案
尝试设置 android:layout_height = "wrap_content"
而不是 "fill_parent"
然后你也可以玩 paddingTop 值 :)
关于android - 如何减少 TabHost 中的距离?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4670877/