LabelValueRow
Stay organized with collections
Save and categorize content based on your preferences.
Parcelable representing label value row data.
Inherited Constant Summary
From interface android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR |
|
int |
PARCELABLE_WRITE_RETURN_VALUE |
|
Inherited Method Summary
From class java.lang.Object
Object
|
clone()
|
boolean |
|
void |
finalize()
|
final Class<?>
|
getClass()
|
int |
hashCode()
|
final void |
notify()
|
final void |
notifyAll()
|
String
|
toString()
|
final void |
wait(long arg0, int arg1)
|
final void |
wait(long arg0)
|
final void |
wait()
|
From interface android.os.Parcelable
abstract int |
describeContents()
|
abstract void |
writeToParcel( Parcel arg0,
int arg1)
|
Public Methods
public String getHexBackgroundColor ()
This method is deprecated.
This value is unused by the platform and will be removed in the future.
Returns
- the color of the row's background
public String getHexFontColor ()
This method is deprecated.
This value is unused by the platform and will be removed in the future.
Returns
- the color of the row's font
public void writeToParcel (Parcel dest, int
flags)
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-10-31 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 2024-10-31 UTC."],[[["\u003cp\u003e\u003ccode\u003eLabelValueRow\u003c/code\u003e is a Parcelable class representing label-value row data for display, often used in mobile wallet passes.\u003c/p\u003e\n"],["\u003cp\u003eIt includes methods to access the row's columns (\u003ccode\u003egetColumns\u003c/code\u003e), background color (\u003ccode\u003egetHexBackgroundColor\u003c/code\u003e), and font color (\u003ccode\u003egetHexFontColor\u003c/code\u003e), although the color methods are deprecated.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can build instances of \u003ccode\u003eLabelValueRow\u003c/code\u003e using a dedicated \u003ccode\u003enewBuilder\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements the \u003ccode\u003eParcelable\u003c/code\u003e interface, facilitating its transfer across different components or processes within an Android application.\u003c/p\u003e\n"]]],["`LabelValueRow` is a Parcelable class representing data in a label-value row format. It utilizes a `Builder` for creation. Key actions include retrieving column data via `getColumns()`, and writing data to a parcel through `writeToParcel()`. Deprecated methods `getHexBackgroundColor()` and `getHexFontColor()` were used for color retrieval but are now unused. It provides static `newBuilder()` for initiating the building process. It has a public static CREATOR to create the row.\n"],null,["# LabelValueRow\n\npublic final class **LabelValueRow** extends [Object](//developer.android.com/reference/java/lang/Object.html) \nimplements [Parcelable](//developer.android.com/reference/android/os/Parcelable.html) \nParcelable representing label value row data. \n\n### Nested Class Summary\n\n|-------|---|---|------------------------------------------------------------------------------------------------------------|\n| class | [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder) || Builder to create an [LabelValueRow](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow). |\n\n### Inherited Constant Summary\n\nFrom interface android.os.Parcelable \n\n|-----|-------------------------------|---|\n| int | CONTENTS_FILE_DESCRIPTOR | |\n| int | PARCELABLE_WRITE_RETURN_VALUE | |\n\n### Field Summary\n\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|---|\n| public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[LabelValueRow](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow)\\\u003e | [CREATOR](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow#CREATOR) | |\n\n### Public Method Summary\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [ArrayList](//developer.android.com/reference/java/util/ArrayList.html)\\\u003c[LabelValue](/android/reference/com/google/android/gms/wallet/wobs/LabelValue)\\\u003e | [getColumns](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow#getColumns())() Returns the columns. |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getHexBackgroundColor](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow#getHexBackgroundColor())() *This method is deprecated. This value is unused by the platform and will be removed in the future.* |\n| [String](//developer.android.com/reference/java/lang/String.html) | [getHexFontColor](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow#getHexFontColor())() *This method is deprecated. This value is unused by the platform and will be removed in the future.* |\n| static [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder) | [newBuilder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow#newBuilder())() |\n| void | [writeToParcel](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow#writeToParcel(android.os.Parcel,%20int))([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags) |\n\n### Inherited Method Summary\n\nFrom class java.lang.Object \n\n|----------------------------------------------------------------------------|--------------------------------------------------------------------------------|\n| [Object](//developer.android.com/reference/java/lang/Object.html) | clone() |\n| boolean | equals([Object](//developer.android.com/reference/java/lang/Object.html) arg0) |\n| void | finalize() |\n| final [Class](//developer.android.com/reference/java/lang/Class.html)\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| [String](//developer.android.com/reference/java/lang/String.html) | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFrom interface android.os.Parcelable \n\n|---------------|--------------------------------------------------------------------------------------------------|\n| abstract int | describeContents() |\n| abstract void | writeToParcel([Parcel](//developer.android.com/reference/android/os/Parcel.html) arg0, int arg1) |\n\nFields\n------\n\n#### public static final [Creator](//developer.android.com/reference/android/os/Parcelable.Creator.html)\\\u003c[LabelValueRow](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow)\\\u003e\n**CREATOR**\n\nPublic Methods\n--------------\n\n#### public [ArrayList](//developer.android.com/reference/java/util/ArrayList.html)\\\u003c[LabelValue](/android/reference/com/google/android/gms/wallet/wobs/LabelValue)\\\u003e\n**getColumns** ()\n\nReturns the columns. \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getHexBackgroundColor** ()\n\n**This method is deprecated.** \n\nThis value is unused by the platform and will be removed in the future. \n\n##### Returns\n\n- the color of the row's background \n\n#### public [String](//developer.android.com/reference/java/lang/String.html) **getHexFontColor** ()\n\n**This method is deprecated.** \n\nThis value is unused by the platform and will be removed in the future. \n\n##### Returns\n\n- the color of the row's font \n\n#### public static [LabelValueRow.Builder](/android/reference/com/google/android/gms/wallet/wobs/LabelValueRow.Builder)\n**newBuilder** ()\n\n#### public void **writeToParcel** ([Parcel](//developer.android.com/reference/android/os/Parcel.html) dest, int flags)"]]