Most visited

Recently visited

Added in API level 21

TtsSpan.FractionBuilder

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

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


TYPE_FRACTION类型的 TYPE_FRACTION构建器。

Summary

Public constructors

TtsSpan.FractionBuilder()

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

TtsSpan.FractionBuilder(long integerPart, long numerator, long denominator)

创建类型的TtsSpan TYPE_FRACTION并设置 ARG_INTEGER_PARTARG_NUMERATOR ,并 ARG_DENOMINATOR参数。

Public methods

TtsSpan.FractionBuilder setDenominator(String denominator)

设置 ARG_DENOMINATOR参数。

TtsSpan.FractionBuilder setDenominator(long denominator)

将分母转换为字符串并设置参数 ARG_DENOMINATOR便捷方法。

TtsSpan.FractionBuilder setIntegerPart(String integerPart)

设置 ARG_INTEGER_PART参数。

TtsSpan.FractionBuilder setIntegerPart(long integerPart)

将整数转换为字符串并设置参数 ARG_NUMBER便捷方法。

TtsSpan.FractionBuilder setNumerator(String numerator)

设置 ARG_NUMERATOR参数。

TtsSpan.FractionBuilder setNumerator(long numerator)

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

Inherited methods

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

Public constructors

TtsSpan.FractionBuilder

Added in API level 21
TtsSpan.FractionBuilder ()

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

TtsSpan.FractionBuilder

Added in API level 21
TtsSpan.FractionBuilder (long integerPart, 
                long numerator, 
                long denominator)

创建类型的TtsSpan TYPE_FRACTION并设置 ARG_INTEGER_PARTARG_NUMERATOR ,并 ARG_DENOMINATOR参数。

Parameters
integerPart long
numerator long
denominator long

Public methods

setDenominator

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

设置 ARG_DENOMINATOR参数。

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

setDenominator

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

将分母转换为字符串并设置参数 ARG_DENOMINATOR便捷方法。

Parameters
denominator long: The denominator.
Returns
TtsSpan.FractionBuilder This instance.

setIntegerPart

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

设置 ARG_INTEGER_PART参数。

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

setIntegerPart

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

将整数转换为字符串并设置参数 ARG_NUMBER便捷方法。

Parameters
integerPart long: The integer part.
Returns
TtsSpan.FractionBuilder This instance.

setNumerator

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

设置 ARG_NUMERATOR参数。

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

setNumerator

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

将分子转换为字符串并设置参数 ARG_NUMERATOR便捷方法。

Parameters
numerator long: The numerator.
Returns
TtsSpan.FractionBuilder This instance.

Hooray!