Created
April 4, 2019 21:05
-
-
Save Frankdroid7/b43de35064f9cb0e744ee3327f73cad7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
paste_button.setOnClickListener { | |
val editText2 = findViewById<EditText>(R.id.editText2) | |
if (clipboardManager.primaryClip!!.getItemAt(0).text == "Male"){ | |
clipboardManager.primaryClip = ClipData.newPlainText("text", "Female") | |
} | |
val clipBoardText = clipboardManager.primaryClip!!.getItemAt(0).text | |
editText2.setText(clipBoardText) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment