を取っていません。私のコードをチェックして助けてください。リニアレイアウト要素は、私は私はそれに重みを追加し、それが画面全体を取るためにのためにしようとすると、いくつかのエラーを持つ別のLinearLayoutの小さなのLinearLayoutを持って画面全体
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:id="@+id/linear_layout_two"
android:layout_below="@+id/linear_layout_one"
android:layout_alignParentLeft="true"
android:layout_alignParentStart="true">
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="60dp"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="25dp"
android:textColor="#3193b9"
android:text="99.3%"
android:layout_weight="1"
android:id="@+id/goals_accuracy"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="10dp"
android:gravity="center"
android:text="Goals accuracy"
android:layout_weight="1"
android:id="@+id/goals_accuracy_2"/>
</LinearLayout>
<ImageView
android:layout_width="0dp"
android:layout_height="60dp"
android:src="@drawable/the_vertical"
android:id="@+id/imageView8" />
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="60dp"
android:orientation="vertical">
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="25dp"
android:textColor="#3193b9"
android:text="10:30hr"
android:gravity="center"
android:layout_weight="1"
android:id="@+id/total_time_on_ice"/>
<TextView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:textSize="10dp"
android:text="Total time on ice"
android:gravity="center"
android:layout_weight="1"
android:id="@+id/total_time_on_ice_2"/>
</LinearLayout>
</LinearLayout>
私はそれに重みを追加しようとしたが、それは仕事をdidntの、私はそれを削除しました。私は、幅を0に設定し、ウェイトを1に設定する必要があることは知っていますが、ネストされたレイアウトで動作させる方法を混乱させています。しかし、私は...
を簡素化することができますか? – firegloves
うん、すべてのレイアウト内のすべてのものがTHWに画面の幅全体を埋めるためにも同様に、これらの2つのレイアウト間でImageViewのは、ちょうど縦線画像 –