| final void | setText (int resid) |
| final void |
setText
(char[] text, int start, int len)
Sets the TextView to display the specified slice of the specified char array.
|
| final void | setText (int resid, TextView.BufferType type) |
| final void |
setText
(
CharSequence
text)
Sets the string value of the TextView.
|
| 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.
|
android.widget.TextView.setText()
最新推荐文章于 2023-06-02 07:45:00 发布
本文详细介绍了 Android 中 TextView 控件的 setText 方法,包括如何使用不同参数设置显示文本,如 CharSequence 对象、字符数组片段及资源 ID 等。此外还解释了如何通过 BufferType 控制文本的可编辑性和样式。
720

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



