Skip to content

Instantly share code, notes, and snippets.

@makorowy
Last active March 2, 2019 12:53
Show Gist options
  • Save makorowy/204971987cfd70bbe3867290857bdf09 to your computer and use it in GitHub Desktop.
Save makorowy/204971987cfd70bbe3867290857bdf09 to your computer and use it in GitHub Desktop.
Sample for article needs - How to create a compound view?
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
consentsView.onConsentsCheckedChangeListener = { allConsentsChecked ->
confirmButton.isEnabled = allConsentsChecked
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment