public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { SetStyle(StyleNormal, Resource.Style.BottomSheetStyle); var prefs = new PreferenceWrapper(Context); Context.Theme.ApplyStyle(AccentColourMap.GetOverlay(prefs.AccentColour), true); return(inflater.Inflate(_layout, container, false)); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); _preferences = new PreferenceWrapper(this); _checkedOnCreate = true; UpdateTheme(); BaseApplication = (BaseApplication)Application; if (Build.VERSION.SdkInt < BuildVersionCodes.M) { Window.SetStatusBarColor(Android.Graphics.Color.Black); } var overlay = AccentColourMap.GetOverlay(_preferences.AccentColour); Theme.ApplyStyle(overlay, true); SetContentView(_layout); }