Skip to content

Radio Button

Category Requires Version
User Interface API 21, Android 5.0 Lollipop 2

Overview

A visible component that lets the user toggle between two states — checked and unchecked. Only one Radio Button in a group of Radio Buttons can be checked at any given time.

Events

Changed

Event invoked when the radio button state has been changed.

Params
checked Boolean

Methods

Toggle

Change the checked state of the view to the inverse of its current state

Properties

Checked

Boolean Default: False ➖ Write - Designer Blocks

Set the radio button to checked or unchecked

Enabled

Boolean Default: True ➖ Write - Designer Blocks

If set, user can touch the radio button.

Font Bold

Boolean Default: False ➖ Write - Designer

Property for FontBold

Font Italic

Boolean Default: False ➖ Write - Designer

Property for FontItalic

Font Size

Number Default: 14.0 ➖ Read Write - Designer Blocks

The text size of the radio button.

Font Typeface

Number Default: 0 ➖ Write - Designer

Property for FontTypeface

Font Typeface Import

Available as Advanced Property

Text ➖ Write - Designer Blocks

Set a custom font.

Height

Number ➖ Read Write - Blocks

Specifies the component's vertical height, measured in pixels.

Height Percent

Number ➖ Write - Blocks

Specifies the component's vertical height as a percentageof the height of its parent Component.

is Checked

Boolean ➖ Read - Blocks

Returns true if the radio button is checked, else false.

Radio Button Color

Color Default: #000000FF  ➖ Read Write - Designer Blocks

Change the radio button component color.

Text

Text Default: Radio Button Text ➖ Read Write - Designer Blocks

Set here the radio button text.

Text Color

Color Default: #000000FF  ➖ Read Write - Designer Blocks

Set the text color for the radio button.

Visible

Boolean Default: True ➖ Read Write - Designer Blocks

Returns true iff the component is visible.

Width

Number ➖ Read Write - Blocks

Specifies the component's horizontal width, measured in pixels.

Width Percent

Number ➖ Write - Blocks

Specifies the component's horizontal width as a percentageof the Width of its parent Component.


Last update: November 9, 2022