filmov
tv
Android Checkbox Tutorial Kotlin | Event | Action
Показать описание
Hi, in this video, I'll demonstrate how to work with CheckBox in Android. I'll show you step-by-step, how to design an XML layout that consists of few CheckBoxes. You'll also learn how to handle the onClick event as well as onCheckedChanged event on CheckBox. Let's get started.
What is CheckBox?
Android CheckBox is a two-state button that can be either checked or unchecked, like an ON/OFF switch and it allows the user to toggle between the two states. Generally, we can use multiple CheckBoxes in an android app to allow the user to select one or more options from a set that is not mutually exclusive. So, unlike RadioButtons where your selection automatically deselects all other radio buttons in the RadioGroup, in the case of multiple CheckBoxes, if you select one, it doesn't deselect others. In android, there is a lot of usage of checkbox. For example, it can be used to take a survey on expertise or skillset, where we can list few options and allow the user to choose using CheckBox.
In this android studio tutorial video, I will show you how to add and use a checkbox. We use a simple example, I check the checkboxes then resulting text view shows selected checkboxes.
.
please drop a mail or type your questions in the comment section.
What is CheckBox?
Android CheckBox is a two-state button that can be either checked or unchecked, like an ON/OFF switch and it allows the user to toggle between the two states. Generally, we can use multiple CheckBoxes in an android app to allow the user to select one or more options from a set that is not mutually exclusive. So, unlike RadioButtons where your selection automatically deselects all other radio buttons in the RadioGroup, in the case of multiple CheckBoxes, if you select one, it doesn't deselect others. In android, there is a lot of usage of checkbox. For example, it can be used to take a survey on expertise or skillset, where we can list few options and allow the user to choose using CheckBox.
In this android studio tutorial video, I will show you how to add and use a checkbox. We use a simple example, I check the checkboxes then resulting text view shows selected checkboxes.
.
please drop a mail or type your questions in the comment section.