0
У меня есть горизонтальный LinearLayout и внутри него 3 вертикальных LinearLayouts с TextsViews в нем. Я хочу, чтобы 3 LinearLayouts имели равную ширину. Я уже пробовал вес и sumweight, но как вы можете видеть, что столбцы имеют не одинаковую ширину:LinearLayouts с одинаковой шириной в других LinearLayout
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="#455A63"
android:gravity="center"
android:padding="10dp">
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:weightSum="1">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginLeft="8dp"
android:layout_marginRight="8dp"
android:textAlignment="center"/>
<TextView/> <!--same configurations as above-->
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:weightSum="1">
<TextView />
<TextView/>
</LinearLayout>
<LinearLayout
android:orientation="vertical"
android:layout_width="wrap_content"
android:layout_height="match_parent"
android:weightSum="1">
<TextView />
<TextView/>
</LinearLayout>
</LinearLayout>
Не используйте весовую массу только весом = 1 и width = 0dp Как и ответ ниже. –