久久久久久久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(使用線程逐塊處理文件)
主站蜘蛛池模板: 免费超碰| 欧美美女爱爱视频 | 色888www视频在线观看 | 最新免费视频 | www日本在线播放 | 国产精品一区在线 | 五月天激情综合网 | 狠狠干2020| 欧美1区| 国产精品国产三级国产aⅴ原创 | 国产激情视频网站 | 国产极品粉嫩美女呻吟在线看人 | 欧美亚洲高清 | 色射综合| 羞羞的视频在线观看 | 精品九九| 亚洲欧美综合 | 成人欧美一区二区三区白人 | 在线观看欧美日韩视频 | 看片网站在线 | 国产日韩欧美中文 | 国产中文区二幕区2012 | 欧美一区二区在线看 | 婷婷综合色 | 噜久寡妇噜噜久久寡妇 | 国产精品免费在线 | 日本大香伊一区二区三区 | 久久久精品 | 国产成人久久av免费高清密臂 | 女人精96xxx免费网站p | 欧美精品久久久 | 狠狠干狠狠操 | 国产午夜av片 | aaaa一级毛片| 中文字幕第十一页 | 成年视频在线观看福利资源 | 久草新在线 | 一区二区三区免费 | 亚洲va欧美va天堂v国产综合 | 在线观看成人小视频 | 国产sm主人调教女m视频 |