Android Copy Text To Clipboard

If your app has a long gibberish text like Bitcoin address or Ethereum address. Best to put a button to copy the entire string to clipboard rather than letting the user manually copying it.

EditText and ImageButton
val editText: EditText = findViewById(R.id.editText)…