public class OptionsPickerBuilder
extends java.lang.Object
| 构造器和说明 |
|---|
OptionsPickerBuilder(android.content.Context context,
OnOptionsSelectListener listener) |
| 限定符和类型 | 方法和说明 |
|---|---|
<T> OptionsPickerView<T> |
build() |
OptionsPickerBuilder |
isCenterLabel(boolean isCenterLabel) |
OptionsPickerBuilder |
isDialog(boolean isDialog) |
OptionsPickerBuilder |
isRestoreItem(boolean isRestoreItem)
切换选项时,是否还原第一项
|
OptionsPickerBuilder |
setBackgroundId(int backgroundId)
已过时。
|
OptionsPickerBuilder |
setBgColor(int bgColorWheel) |
OptionsPickerBuilder |
setCancelColor(int textColorCancel) |
OptionsPickerBuilder |
setCancelText(java.lang.String textContentCancel) |
OptionsPickerBuilder |
setContentTextSize(int textSizeContent) |
OptionsPickerBuilder |
setCyclic(boolean cyclic1,
boolean cyclic2,
boolean cyclic3) |
OptionsPickerBuilder |
setDecorView(android.view.ViewGroup decorView)
ViewGroup 类型
设置PickerView的显示容器
|
OptionsPickerBuilder |
setDividerColor(int dividerColor)
Set item divider line type color.
|
OptionsPickerBuilder |
setDividerType(com.contrarywind.view.WheelView.DividerType dividerType)
Set item divider line type.
|
OptionsPickerBuilder |
setLabels(java.lang.String label1,
java.lang.String label2,
java.lang.String label3) |
OptionsPickerBuilder |
setLayoutRes(int res,
CustomListener listener) |
OptionsPickerBuilder |
setLineSpacingMultiplier(float lineSpacingMultiplier)
设置Item 的间距倍数,用于控制 Item 高度间隔
|
OptionsPickerBuilder |
setOnCancelClickListener(android.view.View.OnClickListener cancelListener) |
OptionsPickerBuilder |
setOptionsSelectChangeListener(OnOptionsSelectChangeListener listener) |
OptionsPickerBuilder |
setOutSideCancelable(boolean cancelable) |
OptionsPickerBuilder |
setOutSideColor(int outSideColor)
显示时的外部背景色颜色,默认是灰色
|
OptionsPickerBuilder |
setSelectOptions(int option1) |
OptionsPickerBuilder |
setSelectOptions(int option1,
int option2) |
OptionsPickerBuilder |
setSelectOptions(int option1,
int option2,
int option3) |
OptionsPickerBuilder |
setSubCalSize(int textSizeSubmitCancel) |
OptionsPickerBuilder |
setSubmitColor(int textColorConfirm) |
OptionsPickerBuilder |
setSubmitText(java.lang.String textContentConfirm) |
OptionsPickerBuilder |
setTextColorCenter(int textColorCenter)
Set the textColor of selected item.
|
OptionsPickerBuilder |
setTextColorOut(int textColorOut)
Set the textColor of outside item.
|
OptionsPickerBuilder |
setTextXOffset(int xoffset_one,
int xoffset_two,
int xoffset_three) |
OptionsPickerBuilder |
setTitleBgColor(int bgColorTitle) |
OptionsPickerBuilder |
setTitleColor(int textColorTitle) |
OptionsPickerBuilder |
setTitleSize(int textSizeTitle) |
OptionsPickerBuilder |
setTitleText(java.lang.String textContentTitle) |
OptionsPickerBuilder |
setTypeface(android.graphics.Typeface font) |
public OptionsPickerBuilder(android.content.Context context,
OnOptionsSelectListener listener)
public OptionsPickerBuilder setSubmitText(java.lang.String textContentConfirm)
public OptionsPickerBuilder setCancelText(java.lang.String textContentCancel)
public OptionsPickerBuilder setTitleText(java.lang.String textContentTitle)
public OptionsPickerBuilder isDialog(boolean isDialog)
public OptionsPickerBuilder setOnCancelClickListener(android.view.View.OnClickListener cancelListener)
public OptionsPickerBuilder setSubmitColor(int textColorConfirm)
public OptionsPickerBuilder setCancelColor(int textColorCancel)
@Deprecated public OptionsPickerBuilder setBackgroundId(int backgroundId)
setOutSideColor(int) instead.backgroundId - color resId.public OptionsPickerBuilder setOutSideColor(int outSideColor)
outSideColor - color resId.public OptionsPickerBuilder setDecorView(android.view.ViewGroup decorView)
decorView - Parent View.public OptionsPickerBuilder setLayoutRes(int res, CustomListener listener)
public OptionsPickerBuilder setBgColor(int bgColorWheel)
public OptionsPickerBuilder setTitleBgColor(int bgColorTitle)
public OptionsPickerBuilder setTitleColor(int textColorTitle)
public OptionsPickerBuilder setSubCalSize(int textSizeSubmitCancel)
public OptionsPickerBuilder setTitleSize(int textSizeTitle)
public OptionsPickerBuilder setContentTextSize(int textSizeContent)
public OptionsPickerBuilder setOutSideCancelable(boolean cancelable)
public OptionsPickerBuilder setLabels(java.lang.String label1, java.lang.String label2, java.lang.String label3)
public OptionsPickerBuilder setLineSpacingMultiplier(float lineSpacingMultiplier)
lineSpacingMultiplier - 浮点型,1.0-4.0f 之间有效,超过则取极值。public OptionsPickerBuilder setDividerColor(int dividerColor)
dividerColor - color resId.public OptionsPickerBuilder setDividerType(com.contrarywind.view.WheelView.DividerType dividerType)
dividerType - enum Type WheelView.DividerTypepublic OptionsPickerBuilder setTextColorCenter(int textColorCenter)
textColorCenter - color res.public OptionsPickerBuilder setTextColorOut(int textColorOut)
textColorOut - color resId.public OptionsPickerBuilder setTypeface(android.graphics.Typeface font)
public OptionsPickerBuilder setCyclic(boolean cyclic1, boolean cyclic2, boolean cyclic3)
public OptionsPickerBuilder setSelectOptions(int option1)
public OptionsPickerBuilder setSelectOptions(int option1, int option2)
public OptionsPickerBuilder setSelectOptions(int option1, int option2, int option3)
public OptionsPickerBuilder setTextXOffset(int xoffset_one, int xoffset_two, int xoffset_three)
public OptionsPickerBuilder isCenterLabel(boolean isCenterLabel)
public OptionsPickerBuilder isRestoreItem(boolean isRestoreItem)
isRestoreItem - true:还原; false: 保持上一个选项public OptionsPickerBuilder setOptionsSelectChangeListener(OnOptionsSelectChangeListener listener)
listener - 切换item项滚动停止时,实时回调监听。public <T> OptionsPickerView<T> build()