久久久久久久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(使用線程逐塊處理文件)
主站蜘蛛池模板: 亚洲超碰在线观看 | 97精品国产一区二区三区 | 久久久精品国产 | 97超碰在线免费 | 国产精品久久久久久久久久 | 成人午夜精品 | 在线观看中文字幕 | 欧美一二精品 | 日韩有码在线观看 | 91视频大全 | 天天射天天干 | 欧美日产国产成人免费图片 | 在线亚洲欧美 | 国产伦一区二区三区四区 | 亚洲视频一区二区三区 | 久久国产精品久久久久久久久久 | 午夜日韩| 日本公妇乱淫xxxⅹ 国产在线不卡 | 亚洲成人一区二区三区 | 91不卡| 久久天天躁狠狠躁夜夜躁2014 | 色成人免费网站 | 二区三区视频 | 国产丝袜一区二区三区免费视频 | 久久国| 一级片成人 | 成人精品国产一区二区4080 | 91成人精品 | 久久久久久国产精品免费免费 | 久久久久成人精品亚洲国产 | 亚洲精品一区二区冲田杏梨 | 国产精品欧美一区二区三区不卡 | 色婷婷久久久久swag精品 | 欧美一区二区三 | 正在播放亚洲 | 色综合av | 国产精品福利在线观看 | 羞羞视频免费观看 | 黄色免费观看网站 | 精品一二区| 久久精品小视频 |