0
タブ付きページでアプリを作る。[Xamarin] style、Theme.Holo&Theme.AppCompat
私がAppCompatを使用している場合、私はタブをカスタマイズできませんが、 スワイプアクションでタブを動かすことができます。
私がHoloを使用している場合は、タブをカスタマイズすることはできますが、スワイプアクションを使用して 移動タブを使用することはできません。
マイホロテーマ
<resources>
<!--my custom theme-->
<style name="MyTheme"
parent="@android:style/Theme.Holo">
<item name="android:actionBarTabTextStyle">@style/MyActionBarTabText</item>
<item name="android:actionBarTabStyle">@style/MyActionBarTabStyle</item>
<item name="android:background">#FFFFFF</item>
</style>
<!--tab text style-->
<style name="MyActionBarTabText"
parent="@android:style/Widget.Holo.ActionBar.TabText">
<item name="android:textColor">#000000</item>
<item name="android:background">@drawable/tab_selector</item>
</style>
<!--tab style-->
<style name="MyActionBarTabStyle" parent="@android:style/Widget.Holo.ActionBar.TabView">
<!--<item name="android:background">#DCEBF0</item>-->
<item name="android:background">@drawable/tab_selector</item>
<item name="android:layout_width">1dp</item>
</style>
</resources>
私APPCOMPATテーマ
<resources>
<style name="MyTheme" parent="MyTheme.Base">
</style>
<!-- Base theme applied no matter what API -->
<style name="MyTheme.Base" parent="Theme.AppCompat.Light.DarkActionBar">
<!--If you are using revision 22.1 please use just windowNoTitle. Without android:-->
<item name="windowNoTitle">true</item>
<!--We will be using the toolbar so no need to show ActionBar-->
<item name="windowActionBar">false</item>
<!-- Set theme colors from http://www.google.com/design/spec/style/color.html#color-color-palette-->
<!-- You can also set colorControlNormal, colorControlActivated
colorControlHighlight and colorSwitchThumbNormal. -->
<item name="windowActionModeOverlay">true</item>
</style>
</resources>
どのように私は、タブをカスタマイズし、スワイプアクションを使用することができますか?
またはAppCompatでタブテーマのみをホロに変更することはできますか? APPCOMPATを使用して