| <?xml version="1.0" encoding="utf-8"?> |
| <!-- Copyright 2016 The Chromium Authors. All rights reserved. |
| Use of this source code is governed by a BSD-style license that can be |
| found in the LICENSE file. --> |
| |
| <!-- RadioButtonWithDescription extends RelativeLayout --> |
| <merge xmlns:android="http://schemas.android.com/apk/res/android"> |
| |
| <RadioButton |
| android:id="@+id/radio_button" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_centerVertical="true" |
| android:layout_marginEnd="16dp" |
| android:clickable="false" |
| android:focusable="false" |
| android:background="@null" /> |
| |
| <TextView |
| android:id="@+id/title" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_toEndOf="@id/radio_button" |
| android:textAppearance="@style/TextAppearance.BlackTitle1" /> |
| |
| <!-- This TextView is hidden if it has no text, so the initial visibility should be "gone". --> |
| <TextView |
| android:id="@+id/description" |
| android:layout_width="wrap_content" |
| android:layout_height="wrap_content" |
| android:layout_alignStart="@id/title" |
| android:layout_below="@id/title" |
| android:textAppearance="@style/TextAppearance.BlackHint2" |
| android:paddingTop="4dp" |
| android:visibility="gone" /> |
| </merge> |