久久久久久久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(使用線程逐塊處理文件)
主站蜘蛛池模板: 伊人一区| 国产精品久久久久久久久久不蜜臀 | 欧美亚洲视频在线观看 | 青青草av网站 | 久久久久久久久久久一区二区 | 欧美一区2区三区4区公司二百 | 麻豆hd | 色就干 | 免费污视频 | 国产精品久久久久久久久久不蜜臀 | 成人深夜福利 | 久久国产高清 | 久久久久国产一区二区三区 | 国产高清久久久 | 最新高清无码专区 | 黄a网| 中文字幕亚洲视频 | 亚洲天堂av在线 | 久久精品16| 久久综合久久久 | 国产伦精品一区二区三区视频金莲 | 久久av一区 | 欧美a区| 青青久在线视频 | 婷婷成人在线 | 四虎免费视频 | 四虎影视一区二区 | 亚洲色图网址 | 亚洲一区二区三区高清 | 爱爱综合网 | 亚洲一区日韩 | 天天插天天操 | 亚洲免费视频网址 | 日韩视频福利 | 欧美精品一区二区三区四区 在线 | 在线播放国产视频 | 国产三级网站 | 久久精品欧美一区二区三区不卡 | 国产精品亚洲欧美日韩一区在线 | 91久久精品国产91久久 | 亚洲国产免费 |