Most visited

Recently visited

Added in API level 19

AccessibilityNodeInfo.RangeInfo

public static final class AccessibilityNodeInfo.RangeInfo
extends Object

java.lang.Object
    android.view.accessibility.AccessibilityNodeInfo.RangeInfo


如果节点是范围,则包含信息类。 使用obtain(int, float, float, float)来获取实例。

摘要(Summary)

常量(Constants)

int RANGE_TYPE_FLOAT

范围类型:浮动。

int RANGE_TYPE_INT

范围类型:整数。

int RANGE_TYPE_PERCENT

范围类型:值从零到一的百分比。

公共方法(Public methods)

float getCurrent()

获取当前值。

float getMax()

获取最大值。

float getMin()

获取最小值。

int getType()

获取范围类型。

static AccessibilityNodeInfo.RangeInfo obtain(int type, float min, float max, float current)

获取一个合并实例。

继承方法(Inherited methods)

From class java.lang.Object

常量(Constants)

RANGE_TYPE_FLOAT

Added in API level 19
int RANGE_TYPE_FLOAT

范围类型:浮动。

常数值:1(0x00000001)

RANGE_TYPE_INT

Added in API level 19
int RANGE_TYPE_INT

范围类型:整数。

常量值:0(0x00000000)

RANGE_TYPE_PERCENT

Added in API level 19
int RANGE_TYPE_PERCENT

范围类型:值从零到一的百分比。

常量值:2(0x00000002)

公共方法(Public methods)

getCurrent

Added in API level 19
float getCurrent ()

获取当前值。

返回(Returns)
float The current value.

getMax

Added in API level 19
float getMax ()

获取最大值。

返回(Returns)
float The max value.

getMin

Added in API level 19
float getMin ()

获取最小值。

返回(Returns)
float The min value.

getType

Added in API level 19
int getType ()

获取范围类型。

返回(Returns)
int The range type.

也可以看看:

obtain

Added in API level 19
AccessibilityNodeInfo.RangeInfo obtain (int type, 
                float min, 
                float max, 
                float current)

获取一个合并实例。

参数(Parameters)
type int: The type of the range.
min float: The min value.
max float: The max value.
current float: The current value.
返回(Returns)
AccessibilityNodeInfo.RangeInfo

Hooray!