Android7.0中文文档(API)-- TextView
来源:互联网 发布:js点击按钮隐藏div 编辑:程序博客网 时间:2024/06/09 01:21
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/TextView.html
TextView
public class TextView
extends View
implements ViewTreeObserver.OnPreDrawListener
Displays text to the user and optionally allows them to edit it. A TextView is a complete text editor, however the basic class is configured to not allow editing; seeEditText
for a subclass that configures the text view for editing.
向用户显示文本,并且可以选择允许用户编辑它。TextView是一个完整的文本编辑器,但是基类被配置成不可编辑的;请参考EditText
子类,它被配置成可编辑的文本视图。
To allow users to copy some or all of the TextView's value and paste it somewhere else, set the XML attributeandroid:textIsSelectable
to "true" or callsetTextIsSelectable(true)
. ThetextIsSelectable
flag allows users to make selection gestures in the TextView, which in turn triggers the system's built-in copy/paste controls.
为了允许用户复制部分或全部TextView的内容并将其粘贴到其他地方,可以设置XML属性android:textIsSelectable
为true或调用setTextIsSelectable(true)
。textIsSelectable
表示允许用户在TextView中做出手势,这将会触发系统内置的复制/粘贴操作。
XML attributes
XML属性
See TextView Attributes
,View Attributes
参考TextView Attributes
View Attributes
摘要
嵌套类
enum
TextView.BufferType
Type of the text buffer that defines the characteristics of the text such as static, styleable, or editable.
文本缓冲区的类型,它定义了文本的特征,如静态的,可样式化的或可编辑的。
interface
TextView.OnEditorActionListener
Interface definition for a callback to be invoked when an action is performed on the editor.
回调的接口定义,当在编辑器上执行操作时调用。
class
TextView.SavedState
User interface state that is stored by TextView for implementing onSaveInstanceState()
.
由TextView存储的用户接口状态,用于onSaveInstanceState()
的实现。
XML属性
android:autoLink
控制是否自动找到url和电子邮件地址等链接,并转换为可点击的链接。 android:autoSizeMaxTextSize
auto-sizing文本,使用的最大文本长度限制。May be a dimension value, which is a floating point number appended with a unit such as "14.5sp
".
尺寸,带单位的一个浮点数,例如:14.5sp
。
- Android7.0中文文档(API)-- TextView
- Android7.0中文文档(API)--- FrameLayout
- Android7.0中文文档(API)--- DatePicker
- Android7.0中文文档(API) --- MediaController
- Android7.0中文文档(API)--- TabHost
- Android7.0中文文档(API) -- TimePicker
- Android7.0中文文档(API)-- ViewAnimator
- Android7.0中文文档(API)--- AbsoluteLayout
- Android7.0中文文档(API) -- Switch
- Android7.0中文文档(API) --- ToggleButton
- Android7.0中文文档(API) --- RadioButton
- Android7.0中文文档(API) --- CheckedTextView
- Android7.0中文文档(API) -- ScrollView
- Android7.0中文文档(API)-- DigitalClock
- Android7.0中文文档(API)-- TextClock
- Android7.0中文文档(API)---Chronometer
- Android7.0中文文档(API)--- AdapterView
- Android7.0中文文档(API)--- AdapterViewAnimator
- JAVA 使用插入语句插入记录
- Android五大组件-Service
- 如何对应用进行Android系统签名和常用adb命令总结
- Android WebService(基于SOAP协议) 连接方法
- 1、ThinkPHP源码学习-致命错误捕获及自定义错误输出
- Android7.0中文文档(API)-- TextView
- jsemu
- Android Lint官方静态代码检查工具
- 计算机百科
- java序列化与反序列化总结
- 简易版WireShark实现-效果
- 函数和string对象
- 原生js对dom点的操作
- ECMAScript 2015官方文档翻译(一)