Exemple #1
0
 public static void SetTextDirection(TextView textView, int textDirection)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.JellyBeanMr1)
     {
         SeekBarCompatDontCrash.SetTextDirection(textView, textDirection);
     }
 }
Exemple #2
0
 public static void SetOutlineProvider(View view, MarkerDrawable markerDrawable)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
     {
         SeekBarCompatDontCrash.SetOutlineProvider(view, markerDrawable);
     }
 }
Exemple #3
0
 public static bool IsHardwareAccelerated(View view)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.Honeycomb)
     {
         return(SeekBarCompatDontCrash.IsHardwareAccelerated(view));
     }
     return(false);
 }
Exemple #4
0
 public static bool IsInScrollingContainer(IViewParent p)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.IceCreamSandwich)
     {
         return(SeekBarCompatDontCrash.IsInScrollingContainer(p));
     }
     return(false);
 }
Exemple #5
0
        public static Android.Graphics.Drawables.Drawable GetRipple(ColorStateList colorStateList)
        {
            if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
            {
                return(SeekBarCompatDontCrash.GetRipple(colorStateList));
            }

            return(new AlmostRippleDrawable(colorStateList));
        }
Exemple #6
0
 public static void SetBackground(View view, Drawables.Drawable background)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
     {
         SeekBarCompatDontCrash.SetBackground(view, background);
     }
     else
     {
         view.SetBackgroundDrawable(background);
     }
 }