android edittext 设置为单行的方法

使用android:singleLing 提示过时

android:singleLine="true"

现在的方法是

android:inputType="text"android:lines="1"