<LinearLayout android:layout_width="fill_parent"
android:orientation="horizontal"
android:layout_height="wrap_content">
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_width="wrap_content"
android:orientation="horizontal"
android:gravity="center_horizontal"
android:layout_height="wrap_content">
<TextView android:text="2"
android:id="@+id/numberone"
android:layout_width="wrap_content"
android:textStyle="bold"
android:textSize="24px"
android:layout_height="wrap_content"></TextView>
<TextView android:text="x"
android:id="@+id/operation"
android:textStyle="bold"
android:textSize="24px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
<TextView android:text="5"
android:id="@+id/numbertwo"
android:textStyle="bold"
android:textSize="24px"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</LinearLayout>
<TextView android:text="5"
android:id="@+id/numbertwo"
android:textStyle="bold"
android:textSize="24px"
android:gravity="left"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></TextView>
</LinearLayout>
I try to set the first three Textfields in the center, and the last TextField on the left. But all TextViews are displayed on the right.
But i set the gravity tag.
Thanks for your help, Martin