Partager via


View.TooltipTextFormatted Property

Definition

Returns the view's tooltip text. -or- Sets the tooltip text which will be displayed in a small popup next to the view.

public virtual Java.Lang.ICharSequence? TooltipTextFormatted { [Android.Runtime.Register("getTooltipText", "()Ljava/lang/CharSequence;", "GetGetTooltipTextHandler", ApiSince=26)] get; [Android.Runtime.Register("setTooltipText", "(Ljava/lang/CharSequence;)V", "GetSetTooltipText_Ljava_lang_CharSequence_Handler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getTooltipText", "()Ljava/lang/CharSequence;", "GetGetTooltipTextHandler", ApiSince=26)>]
[<set: Android.Runtime.Register("setTooltipText", "(Ljava/lang/CharSequence;)V", "GetSetTooltipText_Ljava_lang_CharSequence_Handler", ApiSince=26)>]
member this.TooltipTextFormatted : Java.Lang.ICharSequence with get, set

Property Value

the tooltip text

Attributes

Remarks

Property getter documentation:

Returns the view's tooltip text.

<strong>Note:</strong> Do not override this method, as it will have no effect on the text displayed in the tooltip. You must call #setTooltipText(CharSequence) to modify the tooltip text.

Java documentation for android.view.View.getTooltipText().

Property setter documentation:

Sets the tooltip text which will be displayed in a small popup next to the view.

The tooltip will be displayed: <ul> <li>On long click, unless it is handled otherwise (by OnLongClickListener or a context menu). </li> <li>On hover, after a brief delay since the pointer has stopped moving </li> </ul>

<strong>Note:</strong> Do not override this method, as it will have no effect on the text displayed in the tooltip.

Java documentation for android.view.View.setTooltipText(java.lang.CharSequence).

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