I use PopupWindow to get some data from users. Surprisingly, I cannot select the text inside the EditText field, which is a requirement as I want the user to be able to copy and paste here. I explicitly used android: textIsSelectable = "true" for my EditText. Here are the attributes that I use for EditText.
<EditText
android:layout_width="match_parent"
android:layout_height="48dp"
android:id="@+id/emailEdit"
android:inputType="textEmailAddress"
android:textIsSelectable="true"
android:drawableLeft="@drawable/email"
android:drawablePadding="16dp"
android:layout_margin="@dimen/actionable_horizontal_margin"
android:singleLine="true"
android:hint="Email"
/>
I also set popup.setFocusable (true). Is there anything else that needs to be done? My copied copy works great for other EditTexts in actions and snippets.
PS I do not want to use custom actions with the clipboard.
source
share