Google 致力于为黑人社区推动种族平等。查看具体举措

BasicLabelFormatter

public final class BasicLabelFormatter
extends Object implements LabelFormatter

java.lang.Object
   ↳ com.google.android.material.slider.BasicLabelFormatter


A simple implementation of the LabelFormatter interface, that limits the number displayed inside a discrete slider's bubble to three digits, and a single-character suffix that denotes magnitude (e.g.: 1.5K, 2.2M, 1.3B, 2T).

Summary

Inherited constants

From interface com.google.android.material.slider.LabelFormatter

Public constructors

BasicLabelFormatter()

Public methods

String getFormattedValue(float value)

Inherited methods

From class java.lang.Object
From interface com.google.android.material.slider.LabelFormatter

Public constructors

BasicLabelFormatter

BasicLabelFormatter ()

Public methods

getFormattedValue

String getFormattedValue (float value)

Parameters
value float

Returns
String