public class NumberPickerUIUtil
extends java.lang.Object
构造器和说明 |
---|
NumberPickerUIUtil() |
限定符和类型 | 方法和说明 |
---|---|
static void |
setPickerDividerColor(android.widget.NumberPicker numberPicker,
int color)
设置分割线颜色
|
static void |
setPickerDividerHeight(android.widget.NumberPicker picker,
int height)
设置分割线高度
|
static void |
setPickerMargins(android.content.Context context,
android.widget.NumberPicker np,
int left,
int top,
int right,
int bottom)
设置单个margin
|
static void |
setPickerTextColour(android.content.Context context,
android.widget.NumberPicker number_picker,
int color)
设置文字颜色
|
static void |
setPickerTextSize(android.view.ViewGroup viewGroup,
int size)
设置文字大小
|
static void |
setPickerWidth(android.widget.NumberPicker np,
int widthDpValue)
设置宽度
|
public static void setPickerTextColour(android.content.Context context, android.widget.NumberPicker number_picker, int color)
context
- number_picker
- color
- public static void setPickerDividerColor(android.widget.NumberPicker numberPicker, int color)
numberPicker
- color
- public static void setPickerWidth(android.widget.NumberPicker np, int widthDpValue)
context
- np
- widthDpValue
- public static void setPickerMargins(android.content.Context context, android.widget.NumberPicker np, int left, int top, int right, int bottom)
context
- np
- left
- top
- right
- bottom
- public static void setPickerTextSize(android.view.ViewGroup viewGroup, int size)
viewGroup
- size
- public static void setPickerDividerHeight(android.widget.NumberPicker picker, int height)
picker
- height
-