1
我正在使用具有一些预定义(135dp)高度&的最大限制为140个字符的编辑文本。我正在使用最大长度来设置输入类型为文本多行的最大限制&。现在,当我在我的Android 4.1.2设备上添加140个字符&使用退格键编辑它时,它工作正常,但当Android 4.0 & 5.0设备重复相同时,它不会编辑编辑文本。但是,如果我点击5-6次,它会有一段时间工作。我无法考虑编辑文本的问题。为什么我的编辑文本在Android 4.4和5.0上无法编辑?
任何帮助或建议,将不胜感激。提前致谢。以下是我编辑文本的xml代码。
<EditText
android:id="@+id/orderConfirmationMessageEditText"
android:layout_width="match_parent"
android:layout_height="135dp"
android:gravity="top"
android:hint="Type your message here"
android:textAppearance="?android:attr/textAppearanceMedium"
android:textColor="#ff7f6c5f"
android:textColorHint="#ff7f6c5f"
android:textCursorDrawable="@drawable/order_cursor_background"
android:inputType="textMultiLine"
android:maxLength="140"
android:paddingTop="10dp"
android:paddingLeft="10dp"
android:paddingRight="10dp"
android:background="@drawable/white_edittext_background">
</EditText>
请添加一些代码你有什么做... !! – Nils
我想也许它是你的XML中的其他地方的问题。这个EditText在你的布局中出现在哪里。 – Jack
不可编辑的意思是什么?它是否像你可以键入一些文字,然后不能删除它?或者是什么 ? – gprathour