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