Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <androidx.constraintlayout.widget.LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
- xmlns:app="http://schemas.android.com/apk/res-auto"
- xmlns:tools="http://schemas.android.com/tools"
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:orientation="horizontal"
- android:weightSum="10"
- tools:context=".MainActivity">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="3"
- android:orientation="horizontal">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_0"/>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="7">
- <Button
- android:layout_width="match_parent"
- android:layout_weight="7"
- android:layout_height="match_parent"
- android:text="@string/button_1"/>
- </LinearLayout>
- </LinearLayout>
- <LinearLayout
- android:layout_width="match_parent"
- android:layout_height="0dp"
- android:layout_weight="2"
- android:orientation="horizontal"
- android:weightSum="10">
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="6">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_2"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="4">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_3"
- </LinearLayout>
- </androidx.constraintlayout.widget.LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement