テキストビューとチェックボックスを含む線形レイアウトがあります。
<LinearLayout style="@style/linearLayoutStyleNoBgColor" >
<TextView
android:id="@+id/useFollowupDate"
style="@style/textFieldStyleType1WithCheckbox" />
<CheckBox
android:id="@+id/checkFollowDate"
style="@style/checkboxStyleType1"/>
</LinearLayout>
スタイルは次のとおりです。
<style name="linearLayoutStyleNoBgColor">
<item name="android:layout_width">fill_parent</item>
<item name="android:layout_height">fill_parent</item>
<item name="android:layout_margin">5dp</item>
<item name="android:weightSum">1.0</item>
</style>
<style name="textFieldStyleType1WithCheckbox" parent="@style/textFieldStyleType1">
<item name="android:layout_height">match_parent</item>
<item name="android:layout_weight">0.30</item>
<item name="android:gravity">center_vertical</item>
</style>
<style name="checkboxStyleType1">
<item name="android:layout_width">0dp</item>
<item name="android:layout_height">wrap_content</item>
<item name="android:layout_weight">0.70</item>
<item name="android:gravity">right|end</item>
</style>
私が達成しようとしているのは
TextView | checkbox
(30%percent screen) | (to the right)
しかし、私は今得ています
TextView | checkbox
(30%percent screen) | (left aligned)
どこが間違っていますか?