码迷,mamicode.com
首页 > 移动开发 > 详细

关于设置android:imeOptions属性无效的解决办法

时间:2014-11-11 15:50:56      阅读:191      评论:0      收藏:0      [点我收藏+]

标签:android   style   blog   io   color   ar   sp   div   on   

在对Android的EditText控件进行设置时,经常会限定一下输入法的属性,设置右下角为完成或者搜索等,一般都会想到android:imeOptions属性,但是仅仅这么设置通常是无效的,还要搭配另外一些属性。

<!-- 添加singleLine属性或者inputType属性,
    注意inputType,我测试的是只能设为text -->
    <EditText 
        android:id="@+id/editText1"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:imeOptions="actionDone"
        android:singleLine="true"
        android:inputType="text"/>

 

关于设置android:imeOptions属性无效的解决办法

标签:android   style   blog   io   color   ar   sp   div   on   

原文地址:http://www.cnblogs.com/wytings/p/4089306.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!