저는 안드로이드에 비교적 익숙하며,이 레이아웃을 수행하는 더 좋은 방법이 있는지 궁금합니다. 왼쪽에 세로로 쌓인 네 개의 레이블이 필요합니다. 오른쪽에는 큰 글꼴 두 개의 레이블이 필요합니다. 에뮬레이터에서이 코드를 실행하면 정확하게 필요한 부분이 있지만 더 선호되는 방법이 있습니까?Android -이 레이아웃을 수행하는 더 좋은 방법이 있습니까?
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<TextView
android:id="@+id/Label1"
android:text="Label 1: "
android:layout_width="200dp"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/Label2"
android:text="Label 2: "
android:layout_below="@id/Label1"
android:layout_width="200dp"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/Label3"
android:text="Label 3: "
android:layout_below="@id/Label2"
android:layout_width="200dp"
android:layout_height="wrap_content"/>
<TextView
android:id="@+id/Label4"
android:text="Label 4: "
android:layout_below="@id/Label3"
android:layout_width="200dp"
android:layout_height="wrap_content"/>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
android:layout_toRightOf="@id/Label1">
<TextView
android:id="@+id/Label6"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:text="Points"
android:textStyle="bold"
android:textSize="25sp"
android:gravity="center_horizontal"/>
<TextView
android:id="@+id/LabelPoints"
android:layout_width="100dp"
android:layout_height="wrap_content"
android:text="8.6"
android:textStyle="bold"
android:textSize="25sp"
android:gravity="center_horizontal"/>
</LinearLayout>
</RelativeLayout>
이 작은 경우에 괜찮을거야 - 그는은 LinearLayouts에서 테이블 구조를 그림처럼 그렇지 않아 – ataulm