我试图用 EditText 模仿 TextView [因为我未能从 TextView 中获取选定的文本]。去做这个
我已经在 xml 中做到了这一点:
android:selectable="true"
android:editable="false"
android:focusable="false"
android:focusableInTouchMode="false"
android:cursorVisible="false"
这在代码中:
text.setTextIsSelectable(true);
这就是我得到的:
我怎样才能摆脱红色部分?