亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Android在tabwidget中的標簽之間刪除空格

Android在tabwidget中的標簽之間刪除空格

慕森卡 2019-12-26 08:52:13
我制作的應用程序具有類似于HelloTabActivity的選項卡,這些選項卡之間也有空格,任何人都可以建議如何刪除此空間,并且選項卡下方還有一條灰線如何將其刪除?main.xml<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"android:orientation="vertical"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:orientation="vertical"        android:layout_width="fill_parent"        android:layout_height="fill_parent"        android:padding="5dp" >        <HorizontalScrollView            android:layout_width="wrap_content"            android:layout_height="wrap_content"            android:scrollbars="none">            <TabWidget                android:id="@android:id/tabs"                android:layout_width="fill_parent"                android:layout_height="wrap_content" />        </HorizontalScrollView>        <FrameLayout            android:id="@android:id/tabcontent"            android:layout_width="fill_parent"            android:layout_height="fill_parent"            android:padding="5dp" />    </LinearLayout></TabHost></LinearLayout>styles.xml<?xml version="1.0" encoding="utf-8"?><resources><style name="CustomTheme" parent="@android:style/Theme">    <item name="android:tabWidgetStyle">@style/CustomTabWidget</item></style><style name="CustomTabWidget" parent="@android:style/Widget.TabWidget">    <item name="android:textAppearance">@style/CustomTabWidgetText</item></style><style name="CustomTabWidgetText"     parent="@android:style/TextAppearance.Widget.TabWidget">    <item name="android:textSize">10sp</item>    <item name="android:textStyle">bold</item>    <item name="android:textColor">#1589FF</item>    <item name="android:padding">3dip</item></style></resources>現在我想刪除選項卡之間的黑色空間,應該像它們已連接一樣,而且我也無法刪除選項卡下方的灰線。
查看完整描述

3 回答

?
海綿寶寶撒

TA貢獻1809條經驗 獲得超8個贊

在xml布局中使用android:showDividers =“ none”。


<TabWidget

        android:id="@android:id/tabs"

        android:layout_width="fill_parent"

        android:showDividers="none"

        android:layout_height="wrap_content"/>


查看完整回答
反對 回復 2019-12-26
  • 3 回答
  • 0 關注
  • 649 瀏覽

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號