EditText is a thin layer over TextView that
configures itself to be editable.
public class EditText extends TextView
java.lang.Object
↳ android.view.View
↳ android.widget.TextView
↳ android.widget.EditText
Here are some values that can be changed,
none, text,textCapCharacters, textCapWords, textCapSentences, textAutoCorrect, textAutoComplete, textMultiLine, textImeMultiLine, textNoSuggestions, textUri, textEmailAddress, textEmailSubject, textShortMessage, textLongMessage, textPersonName, textPostalAddress, textPassword, textVisiblePassword, textWebEditText, textFilter, textPhonetic, textWebEmailAddress, textWebPassword, number, numberSigned, numberDecimal, numberPassword, phone, datetime, date, time.
public class EditText extends TextView
java.lang.Object
↳ android.view.View
↳ android.widget.TextView
↳ android.widget.EditText
Public Constructors
|
|||||||||||
EditText(Context context)
|
|||||||||||
EditText(Context context, AttributeSet
attrs)
|
|||||||||||
EditText(Context context, AttributeSet
attrs, int defStyle)
|
Public Methods
|
|||||||||||
Void
|
extendSelection(int index)
Convenience for
extendSelection(Spannable,
int) . |
||||||||||
Editable
|
getText()
Return the text the TextView is displaying.
|
||||||||||
Void
|
selectAll()
Convenience for
selectAll(Spannable) . |
||||||||||
Void
|
setEllipsize(TextUtils.TruncateAt ellipsis)
Causes words in the text that are longer than the view is wide to be
ellipsized instead of broken in the middle.
|
||||||||||
Void
|
setSelection(int index)
Convenience for
setSelection(Spannable,
int) . |
||||||||||
Void
|
setSelection(int start, int stop)
Convenience for
setSelection(Spannable, int, int) . |
||||||||||
Void
|
setText(CharSequence text,
TextView.BufferType type)
Sets the text that this TextView is to display (see
setText(CharSequence) ) and also sets whether it is
stored in a styleable/spannable buffer and whether it is editable. |
Protected Methods
|
|||||||||||
boolean
|
getDefaultEditable()
Subclasses override this to specify that they have a
KeyListener by default even if not specifically called for in the XML
options.
|
||||||||||
MovementMethod
|
getDefaultMovementMethod()
Subclasses override this to specify a default movement method.
|
Here are some values that can be changed,
none, text,textCapCharacters, textCapWords, textCapSentences, textAutoCorrect, textAutoComplete, textMultiLine, textImeMultiLine, textNoSuggestions, textUri, textEmailAddress, textEmailSubject, textShortMessage, textLongMessage, textPersonName, textPostalAddress, textPassword, textVisiblePassword, textWebEditText, textFilter, textPhonetic, textWebEmailAddress, textWebPassword, number, numberSigned, numberDecimal, numberPassword, phone, datetime, date, time.
No comments:
Post a Comment