public class UiCompat extends Object
| 构造器和说明 |
|---|
UiCompat() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
setBackground(View view,
Drawable background)
android.support.v4.view.ViewCompat SHOULD include this once and for all!!
|
static void |
setHotspotBounds(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(View view,
BalloonMarkerDrawable balloonMarkerDrawable)
Sets the custom Outline provider on API>=21.
|
static void |
setTextDirection(TextView textView,
int textDirection)
Sets the TextView text direction attribute when possible
|
public static void setOutlineProvider(View view, BalloonMarkerDrawable balloonMarkerDrawable)
view - ViewballoonMarkerDrawable - OutlineProvider Drawablepublic static void setHotspotBounds(Drawable drawable, int left, int top, int right, int bottom)
drawable - Drawableleft - Lefttop - Topright - Rightbottom - Bottompublic static void setBackground(View view, Drawable background)
view - Viewbackground - DrawableBackgroundpublic static void setTextDirection(TextView textView, int textDirection)
textView - TextViewtextDirection - Text DirectionView.setTextDirection(int)