Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
NumberPicker.Formatter
android.widget.NumberPicker.Formatter
|
Interface used to format current value into a string for presentation.
Summary
Public methods |
abstract
String
|
format(int value)
Formats a string representation of the current value.
|
Public methods
public abstract String format (int value)
Formats a string representation of the current value.
Parameters |
value |
int : The currently selected value. |
Returns |
String |
A formatted string representation. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# NumberPicker.Formatter\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nNumberPicker.Formatter\n======================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/widget/NumberPicker.Formatter \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nNumberPicker.Formatter\n`\n\n\n`\n\n\n`\n\n|---------------------------------------|\n| android.widget.NumberPicker.Formatter |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nInterface used to format current value into a string for presentation.\n\nSummary\n-------\n\n| ### Public methods ||\n|---------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract `[String](/reference/java/lang/String) | ` `[format](/reference/android/widget/NumberPicker.Formatter#format(int))`(int value) ` Formats a string representation of the current value. |\n\nPublic methods\n--------------\n\n### format\n\nAdded in [API level 11](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract String format (int value)\n```\n\nFormats a string representation of the current value.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|---------------------------------------------|\n| `value` | `int`: The currently selected value. \u003cbr /\u003e |\n\n| Returns ||\n|---------------------------------------|-------------------------------------------|\n| [String](/reference/java/lang/String) | A formatted string representation. \u003cbr /\u003e |"]]