TextView.ErrorFormatted Proprietà

Definizione

Restituisce il messaggio di errore impostato per la visualizzazione con #setErroro null se non è stato impostato alcun errore o se l'errore è stato cancellato dal widget dopo l'input dell'utente. -oppure- Imposta il disegno composto a destra di TextView sull'icona "errore" e imposta un messaggio di errore che verrà visualizzato in un popup quando TextView ha lo stato attivo.

public virtual Java.Lang.ICharSequence? ErrorFormatted { [Android.Runtime.Register("getError", "()Ljava/lang/CharSequence;", "GetGetErrorHandler")] get; [Android.Runtime.Register("setError", "(Ljava/lang/CharSequence;)V", "GetSetError_Ljava_lang_CharSequence_Handler")] set; }
[<get: Android.Runtime.Register("getError", "()Ljava/lang/CharSequence;", "GetGetErrorHandler")>]
[<set: Android.Runtime.Register("setError", "(Ljava/lang/CharSequence;)V", "GetSetError_Ljava_lang_CharSequence_Handler")>]
member this.ErrorFormatted : Java.Lang.ICharSequence with get, set

Valore della proprietà

CharSequence

Attributi

Commenti

Documentazione del getter delle proprietà:

Restituisce il messaggio di errore impostato per la visualizzazione con #setErroro null se non è stato impostato alcun errore o se l'errore è stato cancellato dal widget dopo l'input dell'utente.

per android.widget.TextView.getError().

Documentazione del setter delle proprietà:

Imposta il disegno composto a destra di TextView sull'icona "errore" e imposta un messaggio di errore che verrà visualizzato in un popup quando textView ha lo stato attivo. L'icona e il messaggio di errore verranno reimpostati su Null quando qualsiasi evento chiave causa modifiche al testo di TextView. error Se è null, il messaggio di errore e l'icona verranno cancellati.

per android.widget.TextView.setError(java.lang.CharSequence).

Le parti di questa pagina sono modifiche basate sul lavoro creato e condiviso dal progetto Open Source Android e usato in base ai termini descritti nella licenza Creative Commons 2.5 Attribuzione.

Si applica a