I define Edittext inside xml layout but when i select text inside EditText default cut copy paste not appeare.
here my xml code
<EditText
android:id="@+id/xEt"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_gravity="center"
android:ems="10"
android:gravity="top"
android:padding="15dp"
android:singleLine="false"
android:visibility="visible" />
my java code is:
mEt = (EditText) findViewById(R.id.xEt);
mEt.setTypeface(tf2);
mEt.setTextColor(Color.BLACK);
mEt.setTextSize(30);
Set android:textIsSelectable="true"
(API Level 11 and above) then look into the Clipboard manager in : Copy and Paste
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With