80,351
社区成员
发帖
与我相关
我的任务
分享
<EditText
android:text="Hello World!"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="40sp"
android:textIsSelectable="true"
/>
} else if (isTextSelectable()) {
// Prevent text changes from keyboard.
if (mEditor != null) {
mEditor.mKeyListener = null;
mEditor.mInputType = EditorInfo.TYPE_NULL;
}
bufferType = BufferType.SPANNABLE;
// So that selection can be changed using arrow keys and touch is handled.
setMovementMethod(ArrowKeyMovementMethod.getInstance());
} else if (editable) {
createEditorIfNeeded();
mEditor.mKeyListener = TextKeyListener.getInstance();
mEditor.mInputType = EditorInfo.TYPE_CLASS_TEXT;
} else {