android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_alignParentBottom="true"
- android:orientation="vertical">
+ android:baselineAligned="false">
- <TextView
- android:layout_width="match_parent"
+ <LinearLayout
+ android:layout_width="wrap_content"
android:layout_height="wrap_content"
- android:gravity="center"
- android:text="@string/mqtt_header" />
-
- <TableLayout
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:stretchColumns="1">
-
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="end"
- android:text="@string/mqtt_uri_label" />
-
- <TextView
- android:id="@+id/tv_mqtt_server_uri"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center" />
- </TableRow>
-
- <TableRow
- android:layout_width="match_parent"
- android:layout_height="match_parent">
-
- <TextView
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="end"
- android:text="@string/mqtt_state_label" />
-
- <TextView
- android:id="@+id/tv_mqtt_state"
- android:layout_width="wrap_content"
- android:layout_height="wrap_content"
- android:gravity="center" />
+ android:layout_weight="1">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="end"
+ android:text="@string/mqtt_uri_label" />
+
+ <TextView
+ android:id="@+id/tv_mqtt_server_uri"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center" />
+ </LinearLayout>
- </TableRow>
+ <LinearLayout
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:layout_weight="1">
+
+ <TextView
+ android:layout_width="wrap_content"
+ android:layout_height="wrap_content"
+ android:gravity="end"
+ android:text="@string/mqtt_state_label" />
+
+ <TextView
+ android:id="@+id/tv_mqtt_state"
+ android:layout_width="0dp"
+ android:layout_height="wrap_content"
+ android:layout_weight="1"
+ android:gravity="center" />
+ </LinearLayout>
- </TableLayout>
</LinearLayout>
</RelativeLayout>