Package 

Class SeekBarCompat


  • 
    public class SeekBarCompat
    
                        

    Wrapper compatibility class to call some API-Specific methods And offer alternate procedures when possible

    • Method Summary

      Modifier and Type Method Description
      static void setOutlineProvider(View view, MarkerDrawable markerDrawable) Sets the custom Outline provider on API 21.
      static Drawable getRipple(ColorStateList colorStateList) Our DiscreteSeekBar implementation uses a circular drawable on API 21because we don't set it as Background, but draw it ourselves
      static void setRippleColor(@NonNull() Drawable drawable, ColorStateList colorStateList) Sets the color of the seekbar ripple
      static void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom) As our DiscreteSeekBar implementation uses a circular drawable on API 21we want to use the same method to set its bounds as the Ripple's hotspot bounds.
      static void setBackground(View view, Drawable background) android.support.v4.view.ViewCompat SHOULD include this once and for all!!But it doesn't...
      static void setTextDirection(TextView textView, int textDirection) Sets the TextView text direction attribute when possible
      static boolean isInScrollingContainer(ViewParent p)
      static boolean isHardwareAccelerated(View view)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getRipple

         static Drawable getRipple(ColorStateList colorStateList)

        Our DiscreteSeekBar implementation uses a circular drawable on API 21because we don't set it as Background, but draw it ourselves

      • setRippleColor

         static void setRippleColor(@NonNull() Drawable drawable, ColorStateList colorStateList)

        Sets the color of the seekbar ripple

        Parameters:
        colorStateList - The ColorStateList the track ripple will be changed to
      • setHotspotBounds

         static void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom)

        As our DiscreteSeekBar implementation uses a circular drawable on API 21we want to use the same method to set its bounds as the Ripple's hotspot bounds.

      • setBackground

         static void setBackground(View view, Drawable background)

        android.support.v4.view.ViewCompat SHOULD include this once and for all!!But it doesn't...

      • setTextDirection

         static void setTextDirection(TextView textView, int textDirection)

        Sets the TextView text direction attribute when possible