0
В моем приложении для Android у меня есть флажок и некоторый текст ассоциируется с ним. По умолчанию тексты находятся в правой части, а флажок в левой части, но флажок и текст находятся не в одной строке, а флажок находится в следующей строке, как я могу ее исправить?Как установить флажок в левой части текста
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="55dip"
android:orientation="vertical" >
<TextView
android:id="@+id/lblListItem"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:textSize="17dip"
android:paddingTop="5dp"
android:paddingBottom="5dp"
android:paddingLeft="?android:attr/expandableListPreferredChildPaddingLeft"/>
<CheckBox
android:id="@+id/checkbox"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text=""
android:focusable="false"/>
</LinearLayout>
изменить linearlayout ориентация на горизонтальную. –
Гопал Рао спасибо, он работает;) –
и как я могу установить пространство между флажком и текстом? –