title: Trouble aligning TextView and Checkbox in a layout
body: <p>I have a linear layout that contains a textview and checkbox. </p>
  
  <pre><code> &lt;LinearLayout style="@style/linearLayoutStyleNoBgColor" &gt;
       &lt;TextView
           android:id="@+id/useFollowupDate"
           style="@style/textFieldStyleType1WithCheckbox" /&gt;
  
       &lt;CheckBox
           android:id="@+id/checkFollowDate"
           style="@style/checkboxStyleType1"/&gt;
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>And the styles are:</p>
  
  <pre><code>&lt;style name="linearLayoutStyleNoBgColor"&gt;
      &lt;item name="android:layout_width"&gt;fill_parent&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;fill_parent&lt;/item&gt;
      &lt;item name="android:layout_margin"&gt;5dp&lt;/item&gt;
      &lt;item name="android:weightSum"&gt;1.0&lt;/item&gt;
  &lt;/style&gt;
  
  
  &lt;style name="textFieldStyleType1WithCheckbox" parent="@style/textFieldStyleType1"&gt;
      &lt;item name="android:layout_height"&gt;match_parent&lt;/item&gt;
      &lt;item name="android:layout_weight"&gt;0.30&lt;/item&gt;
      &lt;item name="android:gravity"&gt;center_vertical&lt;/item&gt;
  &lt;/style&gt;
  
  &lt;style name="checkboxStyleType1"&gt;
      &lt;item name="android:layout_width"&gt;0dp&lt;/item&gt;
      &lt;item name="android:layout_height"&gt;wrap_content&lt;/item&gt;
      &lt;item name="android:layout_weight"&gt;0.70&lt;/item&gt;
      &lt;item name="android:gravity"&gt;right|end&lt;/item&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>What I am trying to achieve is</p>
  
  <pre><code>TextView                |     checkbox
  (30%percent screen)     |     (to the right)
  </code></pre>
  
  <p>But I am getting now is</p>
  
  <pre><code>TextView            | checkbox
  (30%percent screen) | (left aligned)
  </code></pre>
  
  <p>Where am I gone wrong?</p>