12 lines
2.3 KiB
XML
12 lines
2.3 KiB
XML
|
<resources xmlns:android="http://schemas.android.com/apk/res/android" xmlns:app="http://schemas.android.com/apk/res-auto"><!--
|
||
|
The collectionViewScrollBars style will be used as the default style for ItemsViewRenderer (the base renderer
|
||
|
for CollectionView and CarouselView. We have to use a style to set up the scrollbars because there is currently
|
||
|
no way to add them via code.
|
||
|
|
||
|
When the renderer is created, we wrap its Context's theme with collectionViewTheme; that way, the
|
||
|
collectionViewScrollBars style will be defined. With the style defined (and with the collectionViewStyle
|
||
|
attribute defined in attrs.xml), we can apply the collectionViewScrollBars style explicitly to the renderer we are
|
||
|
creating (and avoid forcing every child control to have scrollbars).
|
||
|
--><style name="scrollViewScrollBars"><item name="android:scrollbars">vertical|horizontal</item></style><style name="collectionViewTheme"><item name="collectionViewStyle">@style/scrollViewScrollBars</item></style><style name="scrollViewTheme"><item name="scrollViewStyle">@style/scrollViewScrollBars</item></style><style name="MainTheme" parent="MainTheme.Base"></style><!-- Base theme applied no matter what API --><style name="MainTheme.Base" parent="Theme.AppCompat.DayNight.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 https://aka.ms/material-colors --><!-- colorPrimary is used for the default action bar background --><item name="colorPrimary">#2196F3</item><!-- colorPrimaryDark is used for the status bar --><item name="colorPrimaryDark">#1976D2</item><!-- colorAccent is used as the default value for colorControlActivated
|
||
|
which is used to tint widgets --><item name="colorAccent">#FF4081</item><!-- You can also set colorControlNormal, colorControlActivated
|
||
|
colorControlHighlight and colorSwitchThumbNormal. --><item name="windowActionModeOverlay">true</item><item name="android:datePickerDialogTheme">@style/AppCompatDialogStyle</item></style><style name="AppCompatDialogStyle"><item name="colorAccent">#FF4081</item><item name="android:windowIsFloating">true</item></style></resources>
|