类 NumericWheelAdapter
- java.lang.Object
-
- com.jzxiang.pickerview.adapters.AbstractWheelAdapter
-
- com.jzxiang.pickerview.adapters.AbstractWheelTextAdapter
-
- com.jzxiang.pickerview.adapters.NumericWheelAdapter
-
- 所有已实现的接口:
WheelViewAdapter
public class NumericWheelAdapter extends AbstractWheelTextAdapter
Numeric Wheel adapter.
-
-
字段概要
字段 修饰符和类型 字段 说明 static intDEFAULT_MAX_VALUEThe default min value-
从类继承的字段 com.jzxiang.pickerview.adapters.AbstractWheelTextAdapter
context, DEFAULT_TEXT_SIZE, emptyItemResourceId, inflater, itemResourceId, itemTextResourceId, LABEL_COLOR, NO_RESOURCE, TEXT_VIEW_ITEM_RESOURCE
-
-
构造器概要
构造器 构造器 说明 NumericWheelAdapter(Context context)ConstructorNumericWheelAdapter(Context context, int minValue, int maxValue)ConstructorNumericWheelAdapter(Context context, int minValue, int maxValue, String format)ConstructorNumericWheelAdapter(Context context, int minValue, int maxValue, String format, String unit)Constructor
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 intgetItemsCount()Gets items countCharSequencegetItemText(int index)Returns text for specified item-
从类继承的方法 com.jzxiang.pickerview.adapters.AbstractWheelTextAdapter
configureTextView, getConfig, getEmptyItem, getEmptyItemResource, getItem, getItemResource, getItemTextResource, setConfig, setEmptyItemResource, setItemResource, setItemTextResource
-
从类继承的方法 com.jzxiang.pickerview.adapters.AbstractWheelAdapter
notifyDataChangedEvent, notifyDataInvalidatedEvent, registerDataSetObserver, unregisterDataSetObserver
-
-
-
-
字段详细资料
-
DEFAULT_MAX_VALUE
public static final int DEFAULT_MAX_VALUE
The default min value- 另请参阅:
- 常量字段值
-
-
构造器详细资料
-
NumericWheelAdapter
public NumericWheelAdapter(Context context)
Constructor- 参数:
context- the current context
-
NumericWheelAdapter
public NumericWheelAdapter(Context context, int minValue, int maxValue)
Constructor- 参数:
context- the current contextminValue- the wheel min valuemaxValue- the wheel max value
-
NumericWheelAdapter
public NumericWheelAdapter(Context context, int minValue, int maxValue, String format)
Constructor- 参数:
context- the current contextminValue- the wheel min valuemaxValue- the wheel max valueformat- the format string
-
-
方法详细资料
-
getItemText
public CharSequence getItemText(int index)
从类复制的说明:AbstractWheelTextAdapterReturns text for specified item- 指定者:
getItemText在类中AbstractWheelTextAdapter- 参数:
index- the item index- 返回:
- the text of specified items
-
getItemsCount
public int getItemsCount()
从接口复制的说明:WheelViewAdapterGets items count- 返回:
- the count of wheel items
-
-