radio_group_adapter_test.xml revision fead9ca09b117136b35bc5bf137340a754f9eddd
1<?xml version="1.0" encoding="utf-8"?> 2<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:orientation="vertical" 4 android:layout_width="match_parent" 5 android:layout_height="match_parent"> 6 <variable name="obj" type="android.databinding.testapp.vo.RadioGroupBindingObject"/> 7 <RadioGroup 8 android:layout_width="match_parent" android:layout_height="match_parent" 9 android:id="@+id/view" 10 android:checkedButton="@{obj.checkedButton}" 11 > 12 <RadioButton android:layout_width="match_parent" android:layout_height="wrap_content" 13 android:text="One" android:id="@+id/choiceOne"/> 14 <RadioButton android:layout_width="match_parent" android:layout_height="wrap_content" 15 android:text="Two" android:id="@+id/choiceTwo"/> 16 </RadioGroup> 17 18</LinearLayout> 19