Hi Everyone,
I am looking for a solution by which I can fix my App in dark mode only in Android. I did this for iOS but looking for Android too.
here is my style.cs
<?xml version="1.0" encoding="utf-8"?> <resources> <style name="MainTheme" parent="MainTheme.Base"> <item name="colorPrimaryDark">#1E2027</item> </style> <style name="AppTheme" parent="Theme.AppCompat.DayNight"> <!-- Base theme applied no matter what API --> <style name="MainTheme.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 https://aka.ms/material-colors --> <!-- colorPrimary is used for the default action bar background --> <item name="colorPrimary">#1E2027</item> <!-- colorPrimaryDark is used for the status bar --> <item name="colorPrimaryDark">#1E2027</item> <!-- colorAccent is used as the default value for colorControlActivated which is used to tint widgets --> <item name="colorAccent">#000000</item> <item name="android:textAllCaps">false</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" parent="Theme.AppCompat.Light.Dialog"> <item name="colorAccent">#1E2027</item> </style>