完整内容,请查看:http://www.zhdoc.net/android/reference/android/widget/AutoCompleteTextView.Validator.html

AutoCompleteTextView.Validator

public static interface AutoCompleteTextView.Validator

android.widget.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.
修正指定的文本以使其有效。

更多相关文章

  1. android设置textview限制字数以省略号显示的方法
  2. Android子控件超出父控件方法
  3. Android Studio下载及离线升级方法
  4. Delphi XE5 Android 运行黑屏卡死的解决方法
  5. Android编程: 调试方法
  6. ListView常用属性、方法
  7. Android 控件(button)对齐方法实现详解

随机推荐

  1. Sputnik:Airbnb基于Spark构建的数据开发框
  2. 女朋友问我:为什么会乱码?
  3. Spark SQL 中 Broadcast Join 一定比 Shu
  4. 我被喷上了热搜
  5. 单链表LRU
  6. 从网瘾少年逆袭拿到微软 、字节等offer(上
  7. 单链表字符串判断回文
  8. 从网瘾少年逆袭拿到微软 、字节等offer(下
  9. 高新技术企业优惠政策,及认定要求
  10. 堆实战(动态数据流求top k大元素,动态数