Reputation: 4021
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);
Upvotes: 5
Views: 18094
Reputation: 1935
Set android:textIsSelectable="true"
(API Level 11 and above) then look into the Clipboard manager in : Copy and Paste
Upvotes: 4