예제 #1
0
 public static void SetTextDirection(TextView textView, int textDirection)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.JellyBeanMr1)
     {
         SeekBarCompatDontCrash.SetTextDirection(textView, textDirection);
     }
 }
예제 #2
0
 public static void SetOutlineProvider(View view, MarkerDrawable markerDrawable)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.Lollipop)
     {
         SeekBarCompatDontCrash.SetOutlineProvider(view, markerDrawable);
     }
 }
예제 #3
0
 public static bool IsHardwareAccelerated(View view)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.Honeycomb)
     {
         return(SeekBarCompatDontCrash.IsHardwareAccelerated(view));
     }
     return(false);
 }
예제 #4
0
 public static bool IsInScrollingContainer(IViewParent p)
 {
     if (Build.VERSION.SdkInt >= BuildVersionCodes.IceCreamSandwich)
     {
         return(SeekBarCompatDontCrash.IsInScrollingContainer(p));
     }
     return(false);
 }
예제 #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));
        }
예제 #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);
     }
 }