こんにちは、タブホストとホロテーマがあります。クリックしたタブの下の青色を変更しようとしましたが、成功しませんでした。これは main.xml です
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="false"
android:orientation="vertical"
android:scrollbarAlwaysDrawVerticalTrack="false" >
<LinearLayout
android:id="@+id/tabhost_parent"
android:layout_width="fill_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabHost
android:id="@+id/main_tabhost"
android:layout_width="match_parent"
android:layout_height="match_parent"
>
<LinearLayout
android:id="@+id/tabhost_lierlayout"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical" >
<TabWidget
android:id="@android:id/tabs"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:background="@drawable/regi_input02_tap"
android:showDividers="middle">
</TabWidget>
<LinearLayout
android:id="@+id/header_layout"
android:layout_width="match_parent"
android:layout_height="32dp"
android:orientation="horizontal"
android:background="@android:color/background_dark">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Test Text"
android:textSize="23dp"
android:textColor="@android:color/background_light"
/>
</LinearLayout>
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:padding="5dp">
<LinearLayout
android:id="@+id/sports_tab"
android:layout_width="match_parent"
android:layout_height="match_parent" >
</LinearLayout>
<LinearLayout
android:id="@+id/busines_tab"
android:layout_width="match_parent"
android:layout_height="match_parent">
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="busines"
/>
</LinearLayout>
<LinearLayout
android:id="@+id/news_tab"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<TextView
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="news"
/>
</LinearLayout>
</FrameLayout>
</LinearLayout>
</TabHost>
</LinearLayout>
</LinearLayout>
上のリンクの写真に似ています。私がしたいのは、タブ 1 の下の青色のストライプを変更することだけです。
私はこれを約2日間検索しましたが、これを行う方法についての適切な説明が見つかりませんでした.
私はこのようなリソースで遊んでみました
:
これはmanifest.xmlです
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.brodgate.mivzaki"
android:versionCode="1"
android:versionName="1.0" >
<uses-sdk
android:minSdkVersion="7"
android:targetSdkVersion="14" />
<application
android:icon="@drawable/ic_launcher"
android:label="@string/app_name"
android:theme="@style/CustomTheme" >
<activity
android:name=".MainActivity"
android:label="@string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
これは私が青い線のために変更しようとしたスタイルですが、成功しませんでした
スタイル.xml
<style name="CustomTheme" parent="android:Theme.Holo.Light">
<item name="android:actionBarStyle">@style/ActionBar</item>
</style>
<style name="ActionBar" parent="android:style/Widget.Holo.Light.ActionBar">
<item name="android:background">@color/action_bar_background</item>
<item name="android:showDividers">beginning</item>
<item name="android:divider">@color/action_bar_divider</item>
</style>
線の色を変更したいだけです。助けていただければ幸いです。