I wrote a program that uses the textIsSelectable property to select part of the text in a text view.
Now, when you select a part of the text, I want to call the context menu (including: copy, highlight, etc., for example, a book for reading electronic books). I tried and studied, but have not yet succeeded. I
<TextView android:id="@+id/txtContent" android:layout_width="fill_parent" android:layout_height="wrap_content" android:layout_marginBottom="20px" android:textIsSelectable="true" android:textSelectHandleLeft="@drawable/text_select_handle_middle1" android:textSelectHandleRight="@drawable/text_select_handle_middle1" android:text="The consistency gain from standards will improve readability" />
- Is it possible that this idea shows a context menu when choosing text?
- Could you tell me how I create it?
thanks
source share