我试图把一个EditText上的不可编辑,此代码:的EditText不可编辑
<EditText android:id="@+id/outputResult"
android:inputType="text"
android:editable="false"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/result" />
我不得不添加此不编辑
android:focusable="false"
难道我做错了什么?
感谢您柠多
实际上你想要什么? – 2012-02-27 18:30:52
知道为什么不能只用android:editable =“false”。谢谢。 – Jjreina 2012-02-27 18:32:20
@ Zortkun:这正是OP所要求的。 – Squonk 2012-02-27 18:44:05