Rozpoczynam korzystanie z Androida. Mam problem z uruchomieniem prostego układu.
Chciałbym użyć a, LinearLayoutaby ustawić dwa TextViewsw jednym rzędzie. Jeden TextViewpo lewej stronie, drugi po prawej stronie (analogicznie do float: po lewej, float: po prawej w CSS).
Czy to możliwe, czy też muszę użyć innego ViewGrouplub dalszego zagnieżdżania układu, aby to osiągnąć?
Oto, co mam do tej pory:
<?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="fill_parent"
android:orientation="horizontal" android:padding="10sp">
<TextView android:id="@+id/mytextview1" android:layout_height="wrap_content" android:text="somestringontheleftSomestring" android:layout_width="wrap_content"/>
<TextView android:id="@+id/mytextview2" android:layout_height="wrap_content" android:ellipsize="end"
android:text="somestringontheright" android:layout_width="wrap_content"/>
</LinearLayout>


