android:editable is deprecated:use a <EditText> to make it editable
Android:editable is Deprecated:use InputType instead
Analysis:About the read-only problem with the EditText control, that is, the content cannot be changed through the UI, but the content can be selected for replication. In the early SDK, EditText has the editable attribute, and now this property has been deprecated. Workaround: In fact, just one line of code can be done Et.setkeylistener (null), note that this is not setonkeylistener, but Setkeylistener. This method is a member of the TextView, and the effect is exactly as expected after the call, and the input method is not ejected when the focus is obtained. The following is an explanation of the official documentation sets the key listener to being used with this TextView. This can is null to disallow user input. Note that this method had significant and subtle interactions with soft keyboards and other input Method:see KeyListener. getContentType () for important details. Calling this method would replace the current content type of the text view with the content type returned by the key Liste Ner. Be warned so if you want a TextView with a key listener or movement method is not to be focusable, or if you want a Textvie W without a key listener or movement method to is focusable, you must call Setfocusable again after calling this to get th E focusability back the want it.
EditText implementation of Android is not editable