Add Copy to clipboard on CardLayout
Trying to add "copy to clipboard" function to CardLayout, which pulls external data in using Adapter.
This is my current code:
class CardLayout : AppCompatActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.card_layout)
        val activity: ImageButton = findViewById(R.id.copy)
        activity.setOnClickListener {
            // Code to Copy the content of String to the Clip board.
            val...