public static void SetTheme(Activity activity) { switch(Prefs.GetInt("theme", 1)) { case 0: BottomBackground = Resource.Drawable.ab_bottom_solid_darktheme; activity.SetTheme(Resource.Style.Theme_Darktheme); break; case 1: BottomBackground = Resource.Drawable.ab_bottom_solid_lighttheme; activity.SetTheme(Resource.Style.Theme_Lighttheme); break; default: BottomBackground = Resource.Drawable.ab_bottom_solid_lighttheme; activity.SetTheme(Resource.Style.Theme_Lighttheme); break; } }