public static void SetTextDirection(TextView textView, int textDirection) { if (Build.VERSION.SdkInt >= BuildVersionCodes.JellyBeanMr1) { SeekBarCompatDontCrash.SetTextDirection(textView, textDirection); } }
public static void SetOutlineProvider(View view, MarkerDrawable markerDrawable) { if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) { SeekBarCompatDontCrash.SetOutlineProvider(view, markerDrawable); } }
public static bool IsHardwareAccelerated(View view) { if (Build.VERSION.SdkInt >= BuildVersionCodes.Honeycomb) { return(SeekBarCompatDontCrash.IsHardwareAccelerated(view)); } return(false); }
public static bool IsInScrollingContainer(IViewParent p) { if (Build.VERSION.SdkInt >= BuildVersionCodes.IceCreamSandwich) { return(SeekBarCompatDontCrash.IsInScrollingContainer(p)); } return(false); }
public static Android.Graphics.Drawables.Drawable GetRipple(ColorStateList colorStateList) { if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) { return(SeekBarCompatDontCrash.GetRipple(colorStateList)); } return(new AlmostRippleDrawable(colorStateList)); }
public static void SetBackground(View view, Drawables.Drawable background) { if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop) { SeekBarCompatDontCrash.SetBackground(view, background); } else { view.SetBackgroundDrawable(background); } }