У меня есть горизонтальная LinearLayout.Этот LinearLayout имеет флажок рядом с другим LinearLayout.Ширина / высота макета флажка - wrap_content, тогда как внутренняя LinearLayout - fill_parent / wrap_content.Layout_weight внутреннего LinearLayout установлен в 1.
Я попытался добавить несколько android: отступ вокруг флажка, чтобы освободить место вокруг него, но заполнение не дано.Я также пробовал Android: paddingLeft / Right / и т.д.Как мне получить некоторые отступы вокруг моего флажка?
Примечание: у меня есть внутренний LinearLayout, потому что я буду добавлять больше TextViews
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="?android:attr/listPreferredItemHeight">
<CheckBox
android:id="@+id/mycheck"
android:text=""
android:layout_width="30dip"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:focusable="false"
android:background="@drawable/checkbox_background"
android:button="@drawable/checkbox"
/>
<LinearLayout
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_weight="1"
android:layout_height="wrap_content">
<TextView
android:id="@+id/mytext"
android:layout_width="fill_parent"
android:layout_weight="1"
android:gravity="center_vertical"
android:layout_height="wrap_content"
android:lines="1"
android:textColor="@color/white"
android:textSize="10sp"
android:textStyle="italic"
/>
</LinearLayout>
</LinearLayout>