public class SeekBarCompat
extends java.lang.Object
| 构造器和说明 |
|---|
SeekBarCompat() |
| 限定符和类型 | 方法和说明 |
|---|---|
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!!
|
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)
public static android.graphics.drawable.Drawable getRipple(android.content.res.ColorStateList colorStateList)
public static void setRippleColor(@NonNull
android.graphics.drawable.Drawable drawable,
android.content.res.ColorStateList colorStateList)
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)
public static void setBackground(android.view.View view,
android.graphics.drawable.Drawable background)
public static void setTextDirection(android.widget.TextView textView,
int textDirection)
View.setTextDirection(int)public static boolean isInScrollingContainer(android.view.ViewParent p)
public static boolean isHardwareAccelerated(android.view.View view)