Advertisement
Qpel

Untitled

Nov 26th, 2019
2,565
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 6.01 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    xmlns:app="http://schemas.android.com/apk/res-auto"
  4.    xmlns:tools="http://schemas.android.com/tools"
  5.    android:layout_width="match_parent"
  6.    android:layout_height="match_parent"
  7.    android:orientation="vertical"
  8.    android:weightSum="10"
  9.    tools:context=".MainActivity">
  10.  
  11.  
  12.     <LinearLayout
  13.        android:layout_width="match_parent"
  14.        android:layout_height="0dp"
  15.        android:layout_weight="2"
  16.        android:orientation="horizontal"
  17.        android:weightSum="10">
  18.         <LinearLayout
  19.            android:layout_width="0dp"
  20.            android:layout_height="match_parent"
  21.            android:layout_weight="3">
  22.             <Button
  23.                android:layout_width="match_parent"
  24.                android:layout_height="match_parent"
  25.                android:text="@string/button_0"/>
  26.         </LinearLayout>
  27.         <LinearLayout
  28.            android:layout_width="0dp"
  29.            android:layout_height="match_parent"
  30.            android:layout_weight="7">
  31.             <Button
  32.                android:layout_width="match_parent"
  33.                android:layout_height="match_parent"
  34.                android:text="@string/button_1"/>
  35.         </LinearLayout>
  36.     </LinearLayout>
  37.     <LinearLayout
  38.        android:layout_width="match_parent"
  39.        android:layout_height="0dp"
  40.        android:layout_weight="2"
  41.        android:orientation="horizontal"
  42.        android:weightSum="10">
  43.         <LinearLayout
  44.            android:layout_width="0dp"
  45.            android:layout_height="match_parent"
  46.            android:layout_weight="6">
  47.             <Button
  48.                android:layout_width="match_parent"
  49.                android:layout_height="match_parent"
  50.                android:text="@string/button_2"/>
  51.         </LinearLayout>
  52.         <LinearLayout
  53.            android:layout_width="0dp"
  54.            android:layout_height="match_parent"
  55.            android:layout_weight="4">
  56.             <Button
  57.                android:layout_width="match_parent"
  58.                android:layout_height="match_parent"
  59.                android:text="@string/button_3"/>
  60.  
  61.         </LinearLayout>
  62.     </LinearLayout>
  63.     <LinearLayout
  64.        android:layout_width="match_parent"
  65.        android:layout_height="0dp"
  66.        android:layout_weight="2"
  67.        android:orientation="horizontal"
  68.        android:weightSum="10">
  69.         <LinearLayout
  70.            android:layout_width="0dp"
  71.            android:layout_height="match_parent"
  72.            android:layout_weight="5">
  73.             <Button
  74.                android:layout_width="match_parent"
  75.                android:layout_height="match_parent"
  76.                android:text="@string/button_4"/>
  77.         </LinearLayout>
  78.         <LinearLayout
  79.            android:layout_width="0dp"
  80.            android:layout_height="match_parent"
  81.            android:layout_weight="5">
  82.             <Button
  83.                android:layout_width="match_parent"
  84.                android:layout_height="match_parent"
  85.                android:text="@string/button_5"/>
  86.         </LinearLayout>
  87.     </LinearLayout>
  88.     <LinearLayout
  89.    android:layout_width="match_parent"
  90.    android:layout_height="0dp"
  91.    android:layout_weight="2"
  92.    android:orientation="horizontal"
  93.    android:weightSum="10">
  94.     <LinearLayout
  95.        android:layout_width="0dp"
  96.        android:layout_height="match_parent"
  97.        android:layout_weight="2">
  98.         <Button
  99.            android:layout_width="match_parent"
  100.            android:layout_height="match_parent"
  101.            android:text="@string/button_4"/>
  102.     </LinearLayout>
  103.     <LinearLayout
  104.        android:layout_width="0dp"
  105.        android:layout_height="match_parent"
  106.        android:layout_weight="4">
  107.         <Button
  108.            android:layout_width="match_parent"
  109.            android:layout_height="match_parent"
  110.            android:text="@string/button_5"/>
  111.     </LinearLayout>
  112.     <LinearLayout
  113.        android:layout_width="0dp"
  114.        android:layout_height="match_parent"
  115.        android:layout_weight="4">
  116.         <Button
  117.            android:layout_width="match_parent"
  118.            android:layout_height="match_parent"
  119.            android:text="@string/button_6"/>
  120.     </LinearLayout>
  121. </LinearLayout>
  122.     <LinearLayout
  123.        android:layout_width="match_parent"
  124.        android:layout_height="0dp"
  125.        android:layout_weight="2"
  126.        android:orientation="horizontal"
  127.        android:weightSum="10">
  128.         <LinearLayout
  129.            android:layout_width="0dp"
  130.            android:layout_height="match_parent"
  131.            android:layout_weight="3">
  132.             <Button
  133.                android:layout_width="match_parent"
  134.                android:layout_height="match_parent"
  135.                android:text="@string/button_4"/>
  136.         </LinearLayout>
  137.         <LinearLayout
  138.            android:layout_width="0dp"
  139.            android:layout_height="match_parent"
  140.            android:layout_weight="4">
  141.             <Button
  142.                android:layout_width="match_parent"
  143.                android:layout_height="match_parent"
  144.                android:text="@string/button_5"/>
  145.         </LinearLayout>
  146.         <LinearLayout
  147.            android:layout_width="0dp"
  148.            android:layout_height="match_parent"
  149.            android:layout_weight="3">
  150.             <Button
  151.                android:layout_width="match_parent"
  152.                android:layout_height="match_parent"
  153.                android:text="@string/button_6"/>
  154.         </LinearLayout>
  155.     </LinearLayout>
  156.  
  157. </LinearLayout>
  158.  
  159. <resources>
  160.     <string name="app_name">My Application</string>
  161.     <string name="button_0">Button 0</string>
  162.     <string name="button_1">Button 1</string>
  163.     <string name="button_2">Button 2</string>
  164.     <string name="button_3">Button 3</string>
  165.     <string name="button_4">Button 4</string>
  166.     <string name="button_5">Button 5</string>
  167.     <string name="button_6">Button 6</string>
  168. </resources>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement