Im trying to align two elements in my xml file.
I want to display a TextView called "Description" and a TextView called "Value" on the same line. The Description should right aligned to the center, the Value should be left aligned the center. But the following gravity doesnt seem to affect them.
I assume I should avoid using AbsoluteLayout because of different screen sizes.
<LinearLayout android:id="@+id/LinearLayout01"
android:layout_height="wrap_content" android:layout_width="fill_parent">
<TextView android:text="@+id/TextView01"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="right" android:id="@+id/TextViewDescription"></TextView>
<TextView android:text="@+id/TextView02"
android:layout_width="wrap_content" android:layout_height="wrap_content"
android:layout_gravity="left" android:id="@+id/TextViewValue"></TextView>
</LinearLayout>
I also looked at TableLayout but struggled with that too.
What is the correct way to create a set of description/values down the screen that are center aligned so they appear fine on both portrait and landscape view?