Kotlin Android App Development - Lesson 6 HD
A checkbox is a specific type of two-states button that can be either checked or unchecked. Their primary role is to allow a user to select one or more option from a group of alternatives. CheckBoxes are a popular way of representing Boolean values in Forms. Not only do they get used in mobile applications but also in desktop as well as online forms. CheckBoxes, unlike RadioButtons, are managed independently of each other. Therefore each must handle its own events. This is because CheckBoxes, unlike RadioButtons, can be used to select many options, not just one. A CheckBox is a CompoundButton in that it has two states. Also it does derive from the android.widget.CompoundButton class. The CompoundButton is an abstract class defined in the android.widget package that acts as the interface definition for a callback to be invoked when the checked state of its child is changed. The CompoundButton itself is a Button so CheckBox itself will inherit capabilities for Buttons. tutorial link https://srilankait.com/itboost/Android%20Lesson%206.pdf