How to use checkbox in Sketchware to select between two options?

How to use checkbox in Sketchware to select between two options?

Here is a description of how checkbox can be used in Sketchware to select between male and female.

1. First, place two 'checkbox' widgets in your View field. Change their texts to 'Male' and 'Female'.

2. Complete building your View field.



3. In onCreate method set visible both checkbox1 and checkbox2.

4. On checkbox1 clicked setEnable checkbox2 false.


5. On checkbox2 clicked setEnable checkbox1 false.


6. On button click use if-else checkbox1/checkbox2 getchecked and write your desired logic.

Comments

Post a Comment

Popular posts from this blog

A Flash Light App in Sketchware

Create Music Player app in Sketchware

In Sketchware: How to create a calculator for any simple formula?

Simple car racing android game in Sketchware

Firebase auth in Sketchware for Login Activity