allow selecting parts of a message instead of copying the whole
This commit is contained in:
parent
acd0055477
commit
87e1be8e1b
5 changed files with 49 additions and 1 deletions
12
app/src/main/res/layout/dialog_select_text.xml
Normal file
12
app/src/main/res/layout/dialog_select_text.xml
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<com.simplemobiletools.commons.views.MyTextView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:id="@+id/dialog_select_text_value"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingStart="@dimen/big_margin"
|
||||
android:paddingTop="@dimen/big_margin"
|
||||
android:paddingEnd="@dimen/big_margin"
|
||||
android:textIsSelectable="true"
|
||||
android:textSize="@dimen/big_text_size"
|
||||
tools:text="My sample text" />
|
||||
|
|
@ -11,6 +11,10 @@
|
|||
android:icon="@drawable/ic_share_vector"
|
||||
android:title="@string/share"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/cab_select_text"
|
||||
android:title="@string/select_text"
|
||||
app:showAsAction="never" />
|
||||
<item
|
||||
android:id="@+id/cab_delete"
|
||||
android:icon="@drawable/ic_delete_vector"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue