I am having two checkboxes in my layout as follows
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:baselineAligned="false"
android:gravity="center"
android:orientation="horizontal"
android:padding="5dp" >
<LinearLayout
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" >
<CheckBox
android:id="@+id/cb_mysources_photogallery"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:button="@drawable/toggle_button"
android:clickable="true"
android:gravity="center" />
</LinearLayout>
<LinearLayout
android:layout_width="0dip"
android:layout_height="wrap_content"
android:layout_weight="1"
android:gravity="center" >
<CheckBox
android:id="@+id/cb_mysources_picasa"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:button="@drawable/toggle_button"
android:clickable="true"
android:gravity="center" />
</LinearLayout>
</LinearLayout>
All devices render this properly:
But in Samsung S2 with android 2.3 is displaying it like:
Any ideas why can this be happening? The checkbox is supported by all android versions.
Aucun commentaire:
Enregistrer un commentaire