0
如何擺脫下圖所示的這些氣泡。我的佈局中有兩個選項卡,我用綠色指示燈顯示選定的選項卡(下圖中選擇了第一個選項卡),該選項卡工作正常。但我不知道爲什麼這兩個標籤中會出現小氣泡(如下圖所示)。無論選項卡選擇/未選中,這些小氣泡指示燈始終點亮。任何幫助?如何在android的操作欄選項卡中刪除此泡泡(指示燈)?
這裏是我的style.xml文件 -
<style name="AppTheme" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/RActionBar</item>
<item name="android:actionBarTabTextStyle">@style/RActionBarTabText</item>
<item name="android:actionMenuTextColor">@color/actionbartextcolor</item>
<item name="android:actionBarTabStyle">@style/RActionBarTabs</item>
<item name="android:actionBarTabBarStyle">@style/RActionBarTabBarStyle</item>
<item name="android:textColorHighlight">#99e9d1f6</item>
</style>
<style name="RActionBar" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@color/actionbarbackgndcolor</item>
<item name="android:titleTextStyle">@style/RActionBarTitleText</item>
</style>
<!-- ActionBar title text -->
<style name="RActionBarTitleText" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:textColor">@color/actionbartextcolor</item>
</style>
<!-- ActionBar tabs text styles -->
<style name="RActionBarTabText" parent="@android:style/Widget.Holo.Light.ActionBar">
<item name="android:textColor">@color/actionbartextcolor</item>
<item name="android:textAllCaps">true</item>
<item name="android:gravity">center</item>
</style>
<style name="RActionBarTabs" parent="android:style/Widget.Holo.Light.ActionBar.TabView">
<!-- tab indicator -->
<item name="android:background">@drawable/tab_bar_background</item>
</style>
<style name="RActionBarTabBarStyle" parent="android:style/Widget.Holo.Light.ActionBar.TabBar">
<item name="android:background">@color/actionbarbackgndcolor</item>
</style>
@繪製/ tab_bar_background.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- UNSELECTED TAB STATE -->
<item android:state_pressed="false" android:state_selected="false"><layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Bottom indicator color for the UNSELECTED tab state -->
<item android:left="-5dp" android:right="-5dp" android:top="-5dp"><shape android:shape="rectangle">
<stroke android:width="2dp" android:color="@color/actionbarbackgndcolor" />
</shape></item>
</layer-list></item>
<!-- SELECTED TAB STATE -->
<item android:state_pressed="false" android:state_selected="true"><layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<!-- Tab background color for the SELECTED tab state -->
<item><shape>
<solid android:color="@color/actionbarbackgndcolor" />
</shape></item>
<!-- Bottom indicator color for the SELECTED tab state -->
<item android:left="-5dp" android:right="-5dp" android:top="-5dp"><shape android:shape="rectangle">
<stroke android:width="2dp" android:color="@color/actionbarbottomindicatorcolor" />
</shape></item>
</layer-list></item>
actionbarbottomindicator顏色= 「綠色」, actionbarbackgndcolor = 「藍」(在圖中示出的動作條顏色)
編輯:此外,我已經發現藍色指示線(我的問題)的長度等於標籤標題的長度。