Copy Text to Clip Board
How to Copy Text to Clip Board in Android? - Android Studio In this tutorial we will learn how to copy text to Clip Board. We will copy the text of TextView when Button is clicked. Step 1: Create a new project OR Open your project Step 2: Code: activity_main.xml <LinearLayout xmlns:android= "http://schemas.android.com/apk/res/android" xmlns:tools= "http://schemas.android.com/tools" android:layout_width= "match_parent" android:layout_height= "match_parent" android:orientation= "vertical" android:padding= "10dp" tools:context= ".MainActivity" > <TextView android:id= "@+id/textView" android:textAlignment= "center" android:layout_width= "match_parent" android:layout_height= "wrap_content" android:text= "This is the text to be copied..." /> <Button and...