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