Is there a way to allow the user to select / copy text in a TextView? I need the same EditText functionality where you can press the control button for a long time and get the select all / copy popup options, but I need the control to look like a TextView.
I tried a few things, for example, to make an EditText using the editable = "none" or inputType = "none" parameter, but they still retain the EditText background frame, which I donβt want,
thank
------- Update ----------------------
This is 99%, all I want is that the hilight selection should be visible (orange material). Also, itβs good, could live with it, though:
<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" />
I assume that this is due to cursorVisible = "false", but without this, the cursor is present even without a selection.
android
user291701 May 17 '11 at 3:06 2011-05-17 03:06
source share