var txt = findViewById<TextView>(R.id.wdw)
txt.setOnClickListener {
Toast.makeText(this, "ww", 1000).show()
}
'Android > Kotlin' 카테고리의 다른 글
Coroutine 에서 사용되는 메소드 만들기 (0) | 2021.12.25 |
---|---|
Kotlin에서 Room dependency 추가하기 (0) | 2021.12.25 |
Kotlin에서 데이터 클래스 만들기 (0) | 2021.12.25 |
Kotlin으로 AlertDialog 띄우기 (0) | 2020.10.29 |
Kotlin에서 Toast 띄우기 (0) | 2020.10.29 |
댓글