Skip to content

환경설정

heewon edited this page Jan 15, 2021 · 2 revisions

환경설정


📱 구현 화면



스위치 버튼 리스너 등록

ListActivity.kt
private fun isSwitchOn() {
        binding.switchLock.setOnCheckedChangeListener { _, onSwitch ->
            if (onSwitch) {
                binding.imagebuttonResetting.visibility = View.VISIBLE
            }
            else {
                binding.imagebuttonResetting.visibility = View.INVISIBLE
            }
        }
    }