Wie kann man die textview auf der rechten und linken Seite des Layouts?

Möchte ich um eine textview auf der rechten Seite ein layout und auf der linken Seite ein layout, aber Sie lassen sich stapeln ontop von einander:

<LinearLayout
        android:layout_width="0dip"
        android:layout_weight="1"
        android:layout_height="fill_parent" android:orientation="horizontal">
        <TextView
            android:id="@+id/lefttext"
            android:layout_width="fill_parent"
            android:layout_height="0dip"
            android:layout_weight="1"
            android:text="Symbol"/>
       <TextView
            android:id="@+id/righttext"
            android:layout_width="fill_parent"
            android:layout_height="0dip"
            android:layout_weight="1"
            android:text="Price"/>
    </LinearLayout>

InformationsquelleAutor Sheehan Alam | 2010-08-27

Schreibe einen Kommentar