TextView.SetError TextView.SetError Method

Definition

Overloads

SetError(ICharSequence, Drawable) SetError(ICharSequence, Drawable)

Sets the right-hand compound drawable of the TextView to the specified icon and sets an error message that will be displayed in a popup when the TextView has focus.

SetError(String, Drawable) SetError(String, Drawable)

SetError(ICharSequence, Drawable) SetError(ICharSequence, Drawable)

Sets the right-hand compound drawable of the TextView to the specified icon and sets an error message that will be displayed in a popup when the TextView has focus.

[Android.Runtime.Register("setError", "(Ljava/lang/CharSequence;Landroid/graphics/drawable/Drawable;)V", "GetSetError_Ljava_lang_CharSequence_Landroid_graphics_drawable_Drawable_Handler")]
public virtual void SetError (Java.Lang.ICharSequence error, Android.Graphics.Drawables.Drawable icon);
abstract member SetError : Java.Lang.ICharSequence * Android.Graphics.Drawables.Drawable -> unit
override this.SetError : Java.Lang.ICharSequence * Android.Graphics.Drawables.Drawable -> unit

Parameters

Remarks

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.

SetError(String, Drawable) SetError(String, Drawable)

public void SetError (string error, Android.Graphics.Drawables.Drawable icon);
member this.SetError : string * Android.Graphics.Drawables.Drawable -> unit

Parameters

error
String String

Remarks

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