# Titanium.UI.Android.RadioButtons

> An radio button group component.

- Source: https://titaniumsdk.com/docs/sdk/Titanium.UI.Android.RadioButtons
- Titanium SDK version: 14.0.1
- Kind: view
- Platforms: Android
- Since: Titanium SDK 14.1.0
- Extends: Titanium.UI.View
- Inheritance: Titanium.UI.View > Titanium.Proxy

| Android |
| ------- |
| ![Android](./radiobuttons_android.png) |

Allows you to create a native Android radio button group.

## Example: Simple radio group with 3 radio buttons.

``` js
const win = Ti.UI.createWindow({});
const radioButtons = Ti.UI.Android.createRadioButtons({
	labels: ["option 1", "option 2", "option 3"],
	top: 10,
	left: 10,
	selectedIndex: 1
})
win.add(radioButtons);
win.open();
```

## Properties

### color

- Type: String | Titanium.UI.Color
- Platforms: Android

Defines the color of the labels

### labels

- Type: Array<String>
- Platforms: Android

Array of labels for the radio buttons.

Each item in the array will be one radio button in the group.

### selectedIndex

- Type: Number
- Platforms: Android
- Default: `-1`

Index of the currently selected item.

The value is `-1` when no item is selected. Set the value to `-1` to clear the selection.
The component ignores an index that is not in the range of the labels.

### tintColor

- Type: String | Titanium.UI.Color
- Platforms: Android

Defines the color of the radio circles.

## Events

### click

- Platforms: Android

Fired when a button is clicked.

Event properties:

- `index` (Number): Index of the clicked item.

## Inherited members

36 members are inherited. Each is documented on the type that declares it.

- [Titanium.Proxy](https://titaniumsdk.com/docs/sdk/Titanium.Proxy.md): `addEventListener`, `apiName`, `applyProperties`, `bubbleParent`, `fireEvent`, `lifecycleContainer`, `removeEventListener`
- [Titanium.UI.View](https://titaniumsdk.com/docs/sdk/Titanium.UI.View.md): `accessibilityDisableLongPress`, `backgroundColor`, `borderDashPattern`, `bottom`, `elevation`, `filterTouchesWhenObscured`, `getViewById`, `hiddenBehavior`, `hide`, `id`, `keepHardwareMode`, `left`, `right`, `rotate`, `rotation`, `rotationX`, `rotationY`, `scaleX`, `scaleY`, `show`, `stopAnimation`, `tooltip`, `top`, `touchFeedbackColor`, `transitionName`, `translationX`, `translationY`, `translationZ`, `visible`

---

- This corpus documents Titanium SDK 14.0.1. Anything here that does not name a version describes 14.0.1.
- Titanium is maintained by TiDev. The Appcelerator toolchain is retired: there is no `appc` CLI, no Appcelerator Studio and no hosted build service. The supported CLI is `titanium` on npm, invoked as `ti`.

