public class PickerOptions
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
backgroundId
显示时的外部背景色颜色,默认是灰色
|
int |
bgColorTitle
标题背景颜色
|
int |
bgColorWheel
滚轮背景颜色
|
boolean |
cancelable
是否能取消
|
android.content.Context |
context |
CustomListener |
customListener |
boolean |
cyclic
是否循环
|
boolean |
cyclic1
是否循环,默认否
|
boolean |
cyclic2 |
boolean |
cyclic3 |
java.util.Calendar |
date
当前选中时间
|
android.view.ViewGroup |
decorView |
int |
dividerColor
分割线的颜色
|
WheelView.DividerType |
dividerType
分隔线类型
|
java.util.Calendar |
endDate
终止时间
|
int |
endYear
结尾年份
|
android.graphics.Typeface |
font
字体样式
|
boolean |
isCenterLabel
是否只显示中间的label,默认每个item都显示
|
boolean |
isDialog
是否是对话框模式
|
boolean |
isLunarCalendar
是否显示农历
|
boolean |
isRestoreItem
切换时,还原第一项, 默认false
|
java.lang.String |
label1
单位字符
|
java.lang.String |
label2
单位字符
|
java.lang.String |
label3
单位字符
|
java.lang.String |
labelDay
单位
|
java.lang.String |
labelHours
单位
|
java.lang.String |
labelMinutes
单位
|
java.lang.String |
labelMonth
单位
|
java.lang.String |
labelSeconds
单位
|
java.lang.String |
labelYear
单位
|
int |
layoutRes |
float |
lineSpacingMultiplier
条目间距倍数 默认1.6
|
int |
option1
默认选中项
|
int |
option2
默认选中项
|
int |
option3
默认选中项
|
OnOptionsSelectChangeListener |
optionsSelectChangeListener |
OnOptionsSelectListener |
optionsSelectListener |
java.util.Calendar |
startDate
开始时间
|
int |
startYear
开始年份
|
int |
textColorCancel
取消按钮颜色
|
int |
textColorCenter
分割线之间的文字颜色
|
int |
textColorConfirm
确定按钮颜色
|
int |
textColorOut
分割线以外的文字颜色
|
int |
textColorTitle
标题颜色
|
java.lang.String |
textContentCancel
取消按钮文字
|
java.lang.String |
textContentConfirm
确定按钮文字
|
java.lang.String |
textContentTitle
标题文字
|
int |
textGravity |
int |
textSizeContent
内容文字大小
|
int |
textSizeSubmitCancel
确定取消按钮大小
|
int |
textSizeTitle
标题文字大小
|
OnTimeSelectChangeListener |
timeSelectChangeListener |
OnTimeSelectListener |
timeSelectListener |
boolean[] |
type
显示类型,默认显示: 年月日
|
static int |
TYPE_PICKER_OPTIONS |
static int |
TYPE_PICKER_TIME |
int |
xOffsetDay
x轴偏移量
|
int |
xOffsetHours
x轴偏移量
|
int |
xOffsetMinutes
x轴偏移量
|
int |
xOffsetMonth
x轴偏移量
|
int |
xOffsetOne
x轴偏移量
|
int |
xOffsetSeconds
x轴偏移量
|
int |
xOffsetThree
x轴偏移量
|
int |
xOffsetTwo
x轴偏移量
|
int |
xOffsetYear
x轴偏移量
|
| Constructor and Description |
|---|
PickerOptions(int buildType) |
public static final int TYPE_PICKER_OPTIONS
public static final int TYPE_PICKER_TIME
public OnOptionsSelectListener optionsSelectListener
public OnTimeSelectListener timeSelectListener
public OnTimeSelectChangeListener timeSelectChangeListener
public OnOptionsSelectChangeListener optionsSelectChangeListener
public CustomListener customListener
public java.lang.String label1
public java.lang.String label2
public java.lang.String label3
public int option1
public int option2
public int option3
public int xOffsetOne
public int xOffsetTwo
public int xOffsetThree
public boolean cyclic1
public boolean cyclic2
public boolean cyclic3
public boolean isRestoreItem
public boolean[] type
public java.util.Calendar date
public java.util.Calendar startDate
public java.util.Calendar endDate
public int startYear
public int endYear
public boolean cyclic
public boolean isLunarCalendar
public java.lang.String labelYear
public java.lang.String labelMonth
public java.lang.String labelDay
public java.lang.String labelHours
public java.lang.String labelMinutes
public java.lang.String labelSeconds
public int xOffsetYear
public int xOffsetMonth
public int xOffsetDay
public int xOffsetHours
public int xOffsetMinutes
public int xOffsetSeconds
public int layoutRes
public android.view.ViewGroup decorView
public int textGravity
public android.content.Context context
public java.lang.String textContentConfirm
public java.lang.String textContentCancel
public java.lang.String textContentTitle
public int textColorConfirm
public int textColorCancel
public int textColorTitle
public int bgColorWheel
public int bgColorTitle
public int textSizeSubmitCancel
public int textSizeTitle
public int textSizeContent
public int textColorOut
public int textColorCenter
public int dividerColor
public int backgroundId
public float lineSpacingMultiplier
public boolean isDialog
public boolean cancelable
public boolean isCenterLabel
public android.graphics.Typeface font
public WheelView.DividerType dividerType