其实我是无耻的蹭访问量
因为我发现越是简单的就越。。。。。。。。
首先就说限制EditText的输入类型

    android:inputType="none"//输入普通字符(英语)    android:inputType="text"//输入普通字符(汉字)    android:inputType="textCapCharacters"//输入普通字符    android:inputType="textCapWords"//单词首字母大小    android:inputType="textCapSentences"//仅第一个字母大小    android:inputType="textAutoCorrect"//前两个自动完成    android:inputType="textAutoComplete"//前两个自动完成    android:inputType="textMultiLine"//多行输入    android:inputType="textImeMultiLine"//输入法多行(不一定支持)    android:inputType="textNoSuggestions"//不提示    android:inputType="textUri"//URI格式    android:inputType="textEmailAddress"//电子邮件地址格式    android:inputType="textEmailSubject"//邮件主题格式    android:inputType="textShortMessage"//短消息格式    android:inputType="textLongMessage"//长消息格式    android:inputType="textPersonName"//人名格式    android:inputType="textPostalAddress"//邮政格式    android:inputType="textPassword"//密码格式    android:inputType="textVisiblePassword"//密码可见格式    android:inputType="textWebEditText"//作为网页表单的文本格式    android:inputType="textFilter"//文本筛选格式    android:inputType="textPhonetic"//拼音输入格式    android:inputType="number"//数字格式    android:inputType="numberSigned"//有符号数字格式    android:inputType="numberDecimal"//可以带小数点的浮点格式    android:inputType="phone"//拨号键盘    android:inputType="datetime"//日期+时间格式    android:inputType="date"//日期键盘    android:inputType="time"//时间键盘

然后就是光标置顶了

android:gravity="top|left"

so easy 是不是

更多相关文章

  1. 【Android 应用开发】Android资源文件 - 使用资源存储字符串 颜
  2. Android软键盘弹出,布局没有上移的解决办法
  3. Android在全屏状态下键盘覆盖输入框问题
  4. android MTP 过滤指定的文件格式
  5. Android 稀疏镜像格式 (android sparse image format)
  6. android 防止键盘弹出的简单方法
  7. Android通过AES128加密解密字符串
  8. EditText设置不自动弹出键盘

随机推荐

  1. Android性能优化(5):APK瘦身优化
  2. 1、android源代码下载与跟踪
  3. Android(安卓)中文API (61) —— ViewSwitc
  4. android could not find adb.exe 如何解
  5. Android(安卓)跨线程更新 UI
  6. Android(安卓)Google Map应用开发详解
  7. 【Android(安卓)Demo】图片之滑动效果(Ga
  8. Android中文API(134) —— Account
  9. Kivy A to Z -- Android(安卓)apk的生成
  10. Android(安卓)AutoCompleteTextView控件