private void SetBackground(SearchView control, Color color) { var searchPlateId = control.Context.Resources.GetIdentifier("android:id/search_plate", null, null); var searchPlate = control.FindViewById(searchPlateId); searchPlate.SetBackgroundColor(Color.Transparent); var gd = new GradientDrawable(); gd.SetColor(color); gd.SetCornerRadius(30); gd.SetStroke(2, Color.LightGray); //control.SetBackground(gd); var shadow = control.GenerateBackgroundWithShadow( Color.White, 60f, Color.LightGray, 10, GravityFlags.Center); control.SetClipToPadding(false); control.SetBackground(shadow); }