I am trying to embed RadioGroup
with LinearLayout
, so to add elements dynamically to my Layout. My code goes here
`
<RadioButton
android:id="@+id/dailyCheck"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/dailyCheck"/>
<RadioButton
android:id="@+id/selectedCheck"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/selectedCheck" />
<RadioButton
android:id="@+id/specificCheck"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="@string/specificCheck" />
`
Doing this shows an exception:
This RadioGroup layout or its LinearLayout parent is useless
Please suggest me what to do.
Why can't LinearLayout
and RadioGroup
be together in one file.