사용자가 TextView에서 텍스트를 선택 / 복사 할 수있는 방법이 있습니까? 컨트롤을 길게 누르고 모두 선택 / 복사 팝업 옵션을 얻을 수있는 EditText와 동일한 기능이 필요하지만 TextView처럼 보이려면 컨트롤이 필요합니다.
EditText에서 editable = "none"옵션 또는 inputType = "none"을 사용하도록 만드는 것과 같은 몇 가지 작업을 시도했지만 여전히 원하지 않는 EditText의 프레임 배경이 유지됩니다.
감사
------- 업데이트 ----------------------
이것은 99 %입니다. 제가 원하는 것은 선택 하이라이트가 보이게하는 것입니다 (주황색 물건). 그 외에는 좋지만 이것으로 살 수 있습니다.
<EditText
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:editable="false"
style="?android:attr/textViewStyle"
android:textColor="@color/white"
android:textAppearance="@android:style/TextAppearance.Medium"
android:cursorVisible="false"
android:background="@null" />
나는 그것이 cursorVisible = "false"때문에 발생하는 것이라고 생각하지만, 선택하지 않아도 커서가 존재합니다.