의 2 행은 내가 위의 두 배로하고자하는 다음과 같은 구조의 4 텍스트 뷰 (2 개 라벨, 데이터 2)Android 선형 레이아웃. 2
Label Label
Data Data
와 선형 레이아웃을 가지고 있지만 나는 큰 어려움에 봉착했습니다. 욕망 이것은 내가 지금까지 무엇을위한 코드입니다
Label Label
Data Data
Label Label
Data Data
입니다. 더 많은 텍스트보기를 추가하면 위치가 표시됩니다.
<LinearLayout
android:id="@+id/linearLayout"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_below="@+id/temperatureLabel"
android:layout_centerHorizontal="true"
android:layout_marginTop="10dp"
android:orientation="horizontal"
android:weightSum="100" android:baselineAligned="false">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="50"
android:orientation="vertical">
<TextView
android:id="@+id/label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/label"
android:textColor="#80ffffff" />
<TextView
android:id="@+id/data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/data"
android:textColor="@android:color/white"
android:textSize="24sp" />
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:layout_weight="50"
android:orientation="vertical">
<TextView
android:id="@+id/Label"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/label"
android:textColor="#80ffffff" />
<TextView
android:id="@+id/data"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_horizontal"
android:text="@string/data"
android:textColor="@android:color/white"
android:textSize="24sp" />
</LinearLayout>
</LinearLayout>
원하는 스크린 샷을 넣을 수 있습니까? – diegoveloper
이전과 이후에 원하는 코드는 무엇입니까? 전후에 어떤 모습 이었습니까? –
구조 업데이트 된 ID가 –