0
こんにちは私はアンドロイドプロジェクトに取り組んでいます。私は、タブウィジェットのストリップの色を変更し、タブのテキストのサイズも変更したいと思います。どうすればいいですか? アンドロイドスタジオでtabwidgetの色とタブのテキストサイズを変更するにはどうすればいいですか?
これはコードです:
<?xml version="1.0" encoding="utf-8"?>
<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:background="@android:color/holo_blue_dark">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<TabWidget
android:id="@android:id/tabs"
android:layout_width="wrap_content"
android:layout_height="50dp"
android:layout_marginLeft="30dp"
android:layout_marginTop="30dp"
android:elevation="0dp"
android:showDividers="none"
android:tabStripEnabled="false" />
<FrameLayout
android:id="@android:id/tabcontent"
android:layout_width="match_parent"
android:layout_height="fill_parent" />
</LinearLayout>
</TabHost>
あなたは、これは[http://stackoverflow.com/a/15750561/4049612](http://stackoverflow.com/a/15750561/4049612)タブ下の色を変更するためにチェックすることができますが、 – Krishna