0
탭 페이지가있는 앱을 만듭니다.[Xamarin] style, Theme.Holo & Theme.AppCompat
AppCompat를 사용하는 경우 탭을 사용자 지정할 수 없지만 탭을 스 와이프 동작으로 사용할 수 있습니다.
홀로를 사용하는 경우 탭을 맞춤 설정할 수 있지만 탭을 스 와이프 동작으로 사용할 수 없습니다.
내 홀로 테마
<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를 사용