Most visited

Recently visited

Added in API level 21

TtsSpan.MeasureBuilder

public static class TtsSpan.MeasureBuilder
extends SemioticClassBuilder<TtsSpan.MeasureBuilder>

java.lang.Object
   ↳ android.text.style.TtsSpan.Builder<android.text.style.TtsSpan.MeasureBuilder>
     ↳ android.text.style.TtsSpan.SemioticClassBuilder<android.text.style.TtsSpan.MeasureBuilder>
       ↳ android.text.style.TtsSpan.MeasureBuilder


类型为TYPE_MEASURETYPE_MEASURE构建器。

Summary

Public constructors

TtsSpan.MeasureBuilder()

创建一个类型为TYPE_MEASURETYPE_MEASURE的构建器。

Public methods

TtsSpan.MeasureBuilder setDenominator(String denominator)

设置 ARG_DENOMINATOR参数。

TtsSpan.MeasureBuilder setDenominator(long denominator)

将分母转换为字符串并将其设置为 ARG_DENOMINATOR便利方法。

TtsSpan.MeasureBuilder setFractionalPart(String fractionalPart)

设置 ARG_FRACTIONAL_PART参数。

TtsSpan.MeasureBuilder setIntegerPart(String integerPart)

设置 ARG_INTEGER_PART参数。

TtsSpan.MeasureBuilder setIntegerPart(long integerPart)

将整数部分转换为String的便捷方法,并将其设置为 ARG_INTEGER_PART的值。

TtsSpan.MeasureBuilder setNumber(long number)

将数字转换为字符串并将其设置为 ARG_NUMBER的值的 ARG_NUMBER

TtsSpan.MeasureBuilder setNumber(String number)

设置 ARG_NUMBER参数。

TtsSpan.MeasureBuilder setNumerator(String numerator)

设置 ARG_NUMERATOR参数。

TtsSpan.MeasureBuilder setNumerator(long numerator)

将分子转换为字符串并将其设置为 ARG_NUMERATOR便利方法。

TtsSpan.MeasureBuilder setUnit(String unit)

设置 ARG_UNIT参数。

Inherited methods

From class android.text.style.TtsSpan.SemioticClassBuilder
From class android.text.style.TtsSpan.Builder
From class java.lang.Object

Public constructors

TtsSpan.MeasureBuilder

Added in API level 21
TtsSpan.MeasureBuilder ()

TYPE_MEASURE类型的 TYPE_MEASURE创建一个构建器。

Public methods

setDenominator

Added in API level 21
TtsSpan.MeasureBuilder setDenominator (String denominator)

设置 ARG_DENOMINATOR参数。

Parameters
denominator String: The denominator of a fraction; a non-empty string of digits with an optional leading + or -.
Returns
TtsSpan.MeasureBuilder This instance.

setDenominator

Added in API level 21
TtsSpan.MeasureBuilder setDenominator (long denominator)

将分母转换为字符串并将其设置为 ARG_DENOMINATOR的值的 ARG_DENOMINATOR

Parameters
denominator long: The denominator of a fraction.
Returns
TtsSpan.MeasureBuilder This instance.

setFractionalPart

Added in API level 21
TtsSpan.MeasureBuilder setFractionalPart (String fractionalPart)

设置 ARG_FRACTIONAL_PART参数。

Parameters
fractionalPart String: The fractional part of a decimal; a non-empty string of digits with an optional leading + or -.
Returns
TtsSpan.MeasureBuilder This instance.

setIntegerPart

Added in API level 21
TtsSpan.MeasureBuilder setIntegerPart (String integerPart)

设置 ARG_INTEGER_PART参数。

Parameters
integerPart String: The integer part of a decimal or fraction; a non-empty string of digits with an optional leading + or -.
Returns
TtsSpan.MeasureBuilder This instance.

setIntegerPart

Added in API level 21
TtsSpan.MeasureBuilder setIntegerPart (long integerPart)

将整数部分转换为String并将其设置为 ARG_INTEGER_PART的值的 ARG_INTEGER_PART

Parameters
integerPart long: The integer part of a decimal or fraction.
Returns
TtsSpan.MeasureBuilder This instance.

setNumber

Added in API level 21
TtsSpan.MeasureBuilder setNumber (long number)

便捷方法将数字转换为字符串并将其设置为 ARG_NUMBER的值。

Parameters
number long: The amount of the measure.
Returns
TtsSpan.MeasureBuilder This instance.

setNumber

Added in API level 21
TtsSpan.MeasureBuilder setNumber (String number)

设置 ARG_NUMBER参数。

Parameters
number String: A non-empty string of digits with an optional leading + or -.
Returns
TtsSpan.MeasureBuilder This instance.

setNumerator

Added in API level 21
TtsSpan.MeasureBuilder setNumerator (String numerator)

设置 ARG_NUMERATOR参数。

Parameters
numerator String: The numerator of a fraction; a non-empty string of digits with an optional leading + or -.
Returns
TtsSpan.MeasureBuilder This instance.

setNumerator

Added in API level 21
TtsSpan.MeasureBuilder setNumerator (long numerator)

将分子转换为字符串并将其设置为 ARG_NUMERATOR的值的 ARG_NUMERATOR

Parameters
numerator long: The numerator of a fraction.
Returns
TtsSpan.MeasureBuilder This instance.

setUnit

Added in API level 21
TtsSpan.MeasureBuilder setUnit (String unit)

设置 ARG_UNIT参数。

Parameters
unit String: The unit of the measure.
Returns
TtsSpan.MeasureBuilder This instance.

也可以看看:

Hooray!