android - 如何减少 TabHost 中的距离?

标签 android android-tabhost

<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>

我怎样才能减少这个距离? http://s47.radikal.ru/i118/1101/92/6844493547b4.jpg 我尝试更改属性

android:paddingTop="62px"

但是没用。

最佳答案

尝试设置 android:layout_height = "wrap_content" 而不是 "fill_parent"
然后你也可以玩 paddingTop 值 :)

关于android - 如何减少 TabHost 中的距离?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4670877/

相关文章:

android - 我可以在不属于那些选项卡的情况下在 TabHost 下进行 Activity 吗

android - 如何释放 TabHost 占用的内存

android - 如何将 TabHost 保持在底部?

java - 实现 Google Places API

java - 如何使用拦截器在 Retrofit 2.0 中添加 header ?

Android Spinner 所选项目

android - android 中的 Tabview ..?

android - 在多 View TabActivity 中模拟后退按钮

java - 将 SQLite 数据导出到 CSV 仅输出 CSV 文件中数据库的最后一个条目

android - 为每个对话框更改对话框主题