Sdílet prostřednictvím


RouteListingPreference.Item.CustomSubtextMessageFormatted Property

Definition

Returns a human-readable CharSequence providing the subtext for the corresponding route.

public Java.Lang.ICharSequence? CustomSubtextMessageFormatted { [Android.Runtime.Register("getCustomSubtextMessage", "()Ljava/lang/CharSequence;", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getCustomSubtextMessage", "()Ljava/lang/CharSequence;", "", ApiSince=34)>]
member this.CustomSubtextMessageFormatted : Java.Lang.ICharSequence

Property Value

Attributes

Remarks

Returns a human-readable CharSequence providing the subtext for the corresponding route.

This value is ignored if the #getSubText() subtext for this item is not #SUBTEXT_CUSTOM..

Applications must provide a localized message that matches the system's locale. See Locale#getDefault().

Applications should avoid using custom messages (and instead use one of non-custom subtexts listed in #getSubText() in order to guarantee correct visual representation and localization on all form factors.

Java documentation for android.media.RouteListingPreference.Item.getCustomSubtextMessage().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to