完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/EditText.html
EditText
public class EditText
extends TextView
| java.lang.Object | |||
| ↳ | android.view.View | ||
| ↳ | android.widget.TextView | ||
| ↳ | android.widget.EditText | ||
EditText is a thin veneer over TextView that configures itself to be editable.
EditText是在TextView基础上的一层薄薄的封装,TextView自身也可以配置成可编辑的。
See the Text Fields guide.
请参考Text Fields指南。
This widget does not support auto-sizing text.
此控件不支持对文本自适应(auto-sizing)。
XML attributes
XML属性
See EditText Attributes, TextView Attributes, View Attributes
请参考EditText Attributes,TextView Attributes。 View Attributes
摘要
继承XML属性 | |
|---|---|
android.widget.TextView
| |
android.view.View
| |
继承常量 |
|---|
android.widget.TextView
|
android.view.View
|
继承字段 |
|---|
android.view.View
|
Public构造方法 | |
|---|---|
EditText(Context context) | |
EditText(Context context, AttributeSet attrs) | |
EditText(Context context, AttributeSet attrs, int defStyleAttr) | |
EditText(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) | |
Public方法 | |
|---|---|
void | extendSelection(int index) Convenience for |
CharSequence | getAccessibilityClassName() Return the class name of this object to be used for accessibility purposes. |
boolean | getFreezesText() Return whether this text view is including its entire text contents in frozen icicles. |
Editable | getText() Return the text that TextView is displaying. |
void | selectAll() Convenience for |
void | setEllipsize(TextUtils.TruncateAt ellipsis) Causes words in the text that are longer than the view's width to be ellipsized instead of broken in the middle. |
void | setSelection(int start, int stop) Convenience for |
void | setSelection(int index) Convenience for |
void | setText(CharSequence text, TextView.BufferType type) Sets the text to be displayed and the |
本文详细介绍了Android中的EditText组件,它是TextView的一种可编辑形式,并列举了其直接和间接子类。此外,还提供了构造方法和一些公共方法的说明,如设置文本、获取文本等。
4万+

被折叠的 条评论
为什么被折叠?



