Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <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="match_parent"
- android:orientation="vertical"
- android:weightSum="10"
- tools:context=".MainActivity">
- <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="3">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_0"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="7">
- <Button
- android:layout_width="match_parent"
- 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>
- </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="5">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_4"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="5">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_5"/>
- </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="2">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_4"/>
- </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_5"/>
- </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_6"/>
- </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="3">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_4"/>
- </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_5"/>
- </LinearLayout>
- <LinearLayout
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="3">
- <Button
- android:layout_width="match_parent"
- android:layout_height="match_parent"
- android:text="@string/button_6"/>
- </LinearLayout>
- </LinearLayout>
- </LinearLayout>
- <resources>
- <string name="app_name">My Application</string>
- <string name="button_0">Button 0</string>
- <string name="button_1">Button 1</string>
- <string name="button_2">Button 2</string>
- <string name="button_3">Button 3</string>
- <string name="button_4">Button 4</string>
- <string name="button_5">Button 5</string>
- <string name="button_6">Button 6</string>
- </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement