Android的TabWidget白色空间的问题 [英] Android TabWidget White Space Issue

查看:113
本文介绍了Android的TabWidget白色空间的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的TabWidget和我收到的TabActivity和标签之间的空白。

I am working on the TabWidget and i am getting a white space between the TabActivity and the Tabs.

我不知道如何删除这个空格请任何一个可以帮助我,我应该如何删除它,我tab_main.xml如下:

I don't know how to remove this white space please can any one help me out how should i remove it, my tab_main.xml is as follows :

<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >

<TabHost
    android:id="@android:id/tabhost"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent" >

    <LinearLayout
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:orientation="vertical" >

        <FrameLayout
            android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="0dip"
            android:layout_weight="1" />

        <TabWidget
            android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="0" />
    </LinearLayout>
</TabHost>

我试图把TabWidget的背景颜色到Android:颜色:透明的,但还是同样的白色空间来的活动和标签之间的

I tried to put background color of TabWidget to android:color:transparent but still same white space comes between the Activity and the Tab.

我不希望我的活动与标签之间的任何分离空间(是否有可能做到这一点?)

I do not want any separation space between my Activity and the Tabs (Is it possible to do it?)

请任何人可以建议我如何摆脱这一空白。

Please can any one suggest me how to get rid of this white space.

推荐答案

它看起来就像你有因为我有我的项目类似的问题,检查出的这个项目,并努力实现绘制的XML文件,并提供你的TabWidget与特定的自定义尺寸在这个项目中给出。它一定会为你工作。

It Look's Like you are having similar issue as i was having in my project, check out this project and try to implement the drawable xml files and provide your TabWidget with the specific custom dimensions as given in this project. It will surely work for you.

这篇关于Android的TabWidget白色空间的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆