LinearLayoutをコンテンツではなくディバイダに合わせる方法があるかどうか尋ねます。デバイダのLinearLayoutを中心に
私はあるセルの幅を別のセルにコピーすることを考えていたので、どちらも同じです。あなたはこれを達成するために、子のレイアウト上の親のレイアウトのandroid:weightSum
財産とandroid:weight
プロパティを使用することができます
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:orientation="horizontal">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical"
>
<TextView
android:id="@+id/savings_accumulated_percentage_value_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Zrealizowano:"
android:layout_gravity="end"
/>
<TextView
android:id="@+id/savings_accumulated_value_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Zgromadzono:"
android:layout_gravity="end"
/>
<TextView
android:id="@+id/savings_target_value_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Cel:"
android:layout_gravity="end"
/>
<TextView
android:id="@+id/savings_target_date_label"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Data zakończenia:"
android:layout_gravity="end"
/>
</LinearLayout>
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="vertical">
<TextView
android:id="@+id/savings_accumulated_percentage_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="18%"
android:textColor="@color/colorAccent" />
<TextView
android:id="@+id/savings_accumulated_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="865 zł"
android:textStyle="bold" />
<TextView
android:id="@+id/savings_target_value"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="2 865 zł"
android:textColor="@color/colorPrimary"
android:textStyle="bold"
/>
<TextView
android:id="@+id/savings_target_date"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="03.07.2018"
/>
</LinearLayout>
</LinearLayout>
、ああレイアウトXML –
を共有そうするのを忘れて、申し訳ありません – AndroidBegginer