您的位置:首页 > 其它

EidtText设置SingleLine无法自动换行

2014-12-26 00:00 169 查看
摘要: EidtText设置SingleLine无法自动换行

<EditText
android:id="@+id/addContent"
android:layout_height="200dp"
android:layout_width="match_parent"
android:hint="@string/add_content_hint_text"
android:gravity="bottom"
android:singleLine="false"
android:inputType="text"
android:layout_marginTop="5dp"/>

之前一直都是用

android:singleLine="false"

来设置自动换行,今天突然不行了,一开始还以为是设置固定的height导致的,好一阵折腾,结果经过搜索是由于设置了inputType导致,去掉inputType设置singleLine等于false即可!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: