Я пытаюсь установить одно текстовое изображение влево, а другое вправо в горизонтальном linearlayout, которое вложено в вертикальный linearlayout, вложенный в scrollview. Горизонтальная линейная просадка выглядит так:Выравнивание слева направо в linearlayout
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
>
<TextView android:id="@+id/txtType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:text="Type of Event: "
style="@style/black_text_bold"
android:visibility="gone"/>
<TextView android:id="@+id/outputType"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="10dip"
android:text="Loading..."
style="@style/black_text"
android:visibility="gone"/>
</LinearLayout>
Как бы это согласовать? Я хочу txttype начать с левой и OutputType до конца по праву, как:
| |
| txtType: outputType |
| |
Спасибо заранее,
Тайлера
использование layou_weights в текстовом виде. – njzk2