A UI component used to create a multiple-exclusion scope for a set of radio buttons. See Android documentation.
Note! This feature requires Android 12+.
| Attribute | Value type | Description |
|---|---|---|
android:accessibilityTraversalAfter | id | Id of view that screen readers are requested to visit before this view. (Android 5.1+) |
android:accessibilityTraversalBefore | id | Id of a view that screen readers are requested to visit after this view. (Android 5.1+) |
android:alpha | float | Opacity of the view, a decimal value between 0 and 1. |
android:background | color or drawable | Background of the view. URIs not supported. |
android:backgroundTint | color | Tint of the background drawable (Android 12+) |
android:backgroundTintMode | enum | Blending mode of foreground drawable tint:
add, multiply, screen, src_atop, src_in or src_over. (Android 12+) |
android:clickable | boolean | Whether this view reacts to click events. |
android:clipToOutline | boolean | Whether to use the views’ outline clip its contents. |
android:contentDescription | string | Brief description of the view content, primarily for accessibility. |
android:elevation | dimension | Base elevation of the view, often shown as a drop shadow. (Android 5+) |
android:focusable | enum | Whether the view can take input focus:
true, false or auto. |
android:focusableInTouchMode | boolean | Whether the view can take input focus while in touch mode. |
android:focusedByDefault | boolean | Whether the view is a default-focus view. (Android 8+) |
android:foregroundGravity | flags | Gravity of the foreground drawable:
bottom, center, center_horizontal, center_vertical, fill, fill_horizontal, fill_vertical, left, right and top. (Android 6+) |
android:foregroundTint | enum | Tint of the foreground drawable. (Android 12+) |
android:foregroundTintMode | enum | Blending mode of foreground drawable tint:
add, multiply, screen, src_atop, src_in or src_over. (Android 12+) |
android:id | id | Identifier name for this view. |
android:labelFor | id | Id of a view for which this view serves as a label for. (Android 4.2+) |
android:layoutDirection | enum | Direction of layout drawing, usually associated with writing direction of the language:
inherit, locale, ltr or rtl (Android 4.2+) |
android:layout_gravity | enum | Position of children within their bounds:
bottom, center, center_horizontal, center_vertical, fill, fill_horizontal, fill_vertical, left, right and top. (Android 6+) |
android:layout_height | enum or dimension | Height of the view:
match_parent or wrap_content, using a dimension requires Android 12+. |
android:layout_margin | dimension | Extra space outside the edges of the view. (Android 12+) |
android:layout_marginBottom | dimension | Extra space outside the bottom edge of the view. (Android 12+) |
android:layout_marginEnd | dimension | Extra space outside the end edge of the view. (Android 12+) |
android:layout_marginHorizontal | dimension | Extra space outside the left and right edge of the view. (Android 12+) |
android:layout_marginLeft | dimension | Extra space outside the left edge of the view. (Android 12+) |
android:layout_marginRight | dimension | Extra space outside the right edge of the view. (Android 12+) |
android:layout_marginStart | dimension | Extra space outside the start edge of the view. (Android 12+) |
android:layout_marginTop | dimension | Extra space outside the top edge of the view. (Android 12+) |
android:layout_marginVertical | dimension | Extra space outside the top and bottom edge of the view. (Android 12+) |
android:layout_weight | integer | How extra space is allocated to the view. An integer between 0 (stretch) and 5. |
android:layout_width | enum or dimension | Width of the view:
match_parent, wrap_content, or on Android 12+ a dimension. |
android:minHeight | dimension | Minimum height of the view. |
android:minWidth | dimension | Minimum width of the view. |
android:outlineRadius | dimension | Corner radius of view outline, see android:clipToOutline. (Android 12+) |
android:padding | dimension | Extra space around the view. (Android 12+) |
android:paddingBottom | dimension | Extra space between the content bottom side and the view edge. (Android 12+) |
android:paddingLeft | dimension | Extra space between the content left side and the view edge. (Android 12+) |
android:paddingRight | dimension | Extra space between the content right side and the view edge. (Android 12+) |
android:paddingTop | dimension | Extra space between the content top side and the of the view edge. (Android 12+) |
android:rotation | float | Rotation of the view, in degrees. |
android:rotationX | float | Rotation of the view around the horizontal axis, in degrees. |
android:rotationY | float | Rotation of the view around the vertical axis, in degrees. |
android:scaleX | float | Horizontal scale of the view. |
android:scaleY | float | Vertical scale of the view. |
android:scrollIndicators | enum | Scroll indicators to show, if scrolling is allowed:
bottom, end, left, none, right, start or top. |
android:supplementalDescription | string | Brief supplemental information for the view, primarily for accessibility. (Android 16+) |
android:transformPivotX | float | Horizontal point around which the view will rotate and scale. |
android:transformPivotY | float | Vertical point around which the view will rotate and scale. |
android:translationX | float | Horizontal translation of the view. |
android:translationY | float | Vertical translation of the view. |
android:translationZ | float | Elevation depth translation of the view. |
android:visibility | enum | Visibility of the view:
gone, invisible or visible. |