리스트뷰 가로/세로 설정 : horizontal/vertical
layout_weight 가중치 설정
<LinearLayout android:layout_width="match_parent" android:layout_height="500dp" android:orientation="horizontal" app:layout_constraintHorizontal_weight="5" android:background="@mipmap/ic_launcher_round" tools:ignore="MissingConstraints">
<TextView android:layout_width="100dp" android:layout_height="100dp" android:layout_weight="1" android:background="@color/colorPrimaryDark"/> <TextView android:layout_width="100dp" android:layout_height="100dp" android:layout_weight="1" android:background="@color/colorAccent"/>
<TextView
android:layout_width="100dp" android:layout_height="100dp" android:layout_weight="1" android:background="@color/colorPrimary"/> </LinearLayout>
|
|
<LinearLayout
android:layout_width="match_parent" android:layout_height="match_parent" android:orientation="vertical" app:layout_constraintHorizontal_weight="5" android:background="@mipmap/ic_launcher_round" tools:ignore="MissingConstraints">
<TextView
android:layout_width="100dp" android:layout_height="100dp" android:layout_weight="1" android:background="@color/colorPrimaryDark"/>
<TextView
android:layout_width="100dp" android:layout_height="100dp" android:layout_weight="1" android:background="@color/colorAccent"/>
<TextView
android:layout_width="100dp" android:layout_height="100dp" android:layout_weight="2" android:background="@color/colorPrimary"/>
</LinearLayout
|
|