久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

Android TabWidget空白問題

Android TabWidget White Space Issue(Android TabWidget空白問題)
本文介紹了Android TabWidget空白問題的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我正在處理 TabWidget,并且在 TabActivity 和 Tabs 之間出現了一個空白.

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:color:transparent 但在 Activity 和 Tab 之間仍然存在相同的空白.

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

我不希望我的 Activity 和選項卡之間有任何分隔空間(可以這樣做嗎?)

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.

推薦答案

看起來您遇到了與我在項目中遇到的類似問題,請查看 this 項目并嘗試實現可繪制的 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空白問題的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

How to wrap text around components in a JTextPane?(如何在 JTextPane 中的組件周圍環繞文本?)
MyBatis, how to get the auto generated key of an insert? [MySql](MyBatis,如何獲取插入的自動生成密鑰?[MySql])
Inserting to Oracle Nested Table in Java(在 Java 中插入 Oracle 嵌套表)
Java: How to insert CLOB into oracle database(Java:如何將 CLOB 插入 oracle 數據庫)
Why does Spring-data-jdbc not save my Car object?(為什么 Spring-data-jdbc 不保存我的 Car 對象?)
Use threading to process file chunk by chunk(使用線程逐塊處理文件)
主站蜘蛛池模板: 国产视频一区二区在线观看 | 午夜精品国产精品大乳美女 | 欧美91| 青青草国产精品 | 久久av影院 | 欧洲精品一区二区 | 久热精品视频在线观看 | 神马午夜影院 | 天天草天天干 | 天天爽天天爽 | 国产美女视频网站 | 91久久奴性调教 | 日韩精品久久久久久免费 | 欧美日韩一区二区三区视频 | 狠狠躁夜夜躁人爽 | 日韩一二区 | 久久久香蕉 | 噜噜视频 | 亚洲123区 | 福利视频午夜 | 精品一区二区三区av | 成年网站在线观看 | 欧美又大又硬又粗bbbbb | 青青草福利视频 | 午夜激情网 | 日本高清在线观看 | 国产视频在线观看视频 | 超碰男人的天堂 | 午夜免费视频 | 一级特黄妇女高潮 | 精品久久久久久久久久久 | 日韩 国产 欧美 | 一级黄色大片 | 九色在线视频 | 国产精品伦子伦免费视频 | 天海翼一区 | www.粉色视频在线观看 | 亚洲成人av在线播放 | 色综合天天综合网天天狠天天 | 亚洲视频精品 | 五月播播|