问题

关于控制是否换行的属性android:singleLine

  • 当值为true的时候,只能一行,不换行
  • 当值为false的时候,可以换行

但是现在遇到一个问题:

<EditText
android:id="@+id/add_info_edit"
android:layout_width="match_parent"
android:layout_height="100dp"
android:layout_gravity="center"
android:background="@drawable/btn_13"
android:gravity="left"
android:hint="请输入验证信息 : 如我是"
android:inputType="text"
android:textColor="@color/gray_hint_color"
android:textSize="@dimen/daohang_two_txt_size"
android:singleLine="false"/>

虽然上面代码中已经将single_line的值设为false,但是依然不能换行

解决方法

不设置inputType的值,或者修改其为inputtype= “textMultiLine"

最新文章

  1. ASP.NET MVC 身份认证
  2. socket是什么?(翻译)
  3. Spring-Context的注解实现依赖注入功能
  4. 【Other】Ubuntu 14.04 pptp 客户端连接配置
  5. hdu 5497 Inversion 树状数组 逆序对,单点修改
  6. 【贪心】【Uva11729】 Commando War
  7. Hadoop 实现多文件输出
  8. python升级2.7.5
  9. u-boot源码下载
  10. ASP.NET通用权限框架 权限管理系统源码jquery 精美UI源码
  11. Infer - 文件说明
  12. 张高兴的 Xamarin.Android 学习笔记:(一)环境配置
  13. tensorflow安装-【老鱼学tensorflow】
  14. ServletContextListener使用详解(监听Tomcat启动、关闭)
  15. ob_gzhandler — ob_start callback function to gzip output buffer
  16. pyDay1
  17. C# 调用WebService服务
  18. etcd3集群管理
  19. 关于IFrame表述正确的有:()
  20. oracle hint inline materialize

热门文章

  1. SQL修炼道路上必看的书籍
  2. MVC过滤器基本使用
  3. Matlab中的取整-floor,ceil,fix,round
  4. C++内联函数与宏定义
  5. php内核一 一次请求与结束
  6. centos6.5 升级python 到 python 2.7.11 安装 pip
  7. 加装 ImageMagick 性能更佳!
  8. xar安装使用方法
  9. [转]JSon数据解析的四种方式
  10. 【转】AC算法详解