Android7.0中文文档(API)-- AutoCompleteTextView.Validator
来源:互联网 发布:java 小写字母转大写 编辑:程序博客网 时间:2024/06/10 02:15
完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AutoCompleteTextView.Validator.html
AutoCompleteTextView.Validator
public static interface AutoCompleteTextView.Validator
This interface is used to make sure that the text entered in this TextView complies to a certain format. Since there is no foolproof way to prevent the user from leaving this View with an incorrect value in it, all we can do is try to fix it ourselves when this happens.
此接口用于确保在此TextView中输入的文本符合某种格式。由于没有一种万无一失的方法来防止用户在这个视图中留下一个不正确的值,所以我们所能做的就是在这种情况发生时尝试自己修复它。
摘要
Public方法
abstract CharSequence
fixText(CharSequence invalidText)
Corrects the specified text to make it valid.
修正指定的文本以使其有效。
abstract boolean
isValid(CharSequence text)
Validates the specified text.
验证指定的文本。
Public方法
fixText
API level 1版本中可用
CharSequence fixText (CharSequence invalidText)
Corrects the specified text to make it valid.
修正指定的文本以使其有效。
阅读全文
0 0
- Android7.0中文文档(API)-- AutoCompleteTextView.Validator
- Android7.0中文文档(API)--- AutoCompleteTextView
- Android7.0中文文档(API)-- AutoCompleteTextView.OnDismissListener
- 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
- 如何在Word中排出漂亮的代码
- 你应该知道的 RPC 原理
- 史上最全SVN 教程
- nmon监控工具的使用
- Java服务端时区的几点思考
- Android7.0中文文档(API)-- AutoCompleteTextView.Validator
- c# 判断字符串空值的方法
- 符号匹配问题
- 凸包与Andrew算法——学习笔记
- OBS Classic经典版已经不再支持
- 一分钟了解“Matlab中ismember函数的用法”
- 子进程的异步等待方式
- tomcat集群同步原理
- python __str__,__repr__,__call__()