Advertisement
Guest User

HW2

a guest
Sep 16th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.95 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="horizontal"
  8.    android:weightSum="4"
  9.    tools:context=".MainActivity">
  10.  
  11.  
  12.     <LinearLayout
  13.        android:layout_width="0dp"
  14.        android:layout_height="match_parent"
  15.        android:layout_weight="1"
  16.        android:orientation="vertical"
  17.        android:weightSum="4">
  18.             <Button
  19.                android:layout_width="match_parent"
  20.                android:layout_height="0dp"
  21.                android:layout_weight="3"
  22.                />
  23.     </LinearLayout>
  24.  
  25.  
  26.     <LinearLayout
  27.        android:layout_width="0dp"
  28.        android:layout_height="match_parent"
  29.        android:layout_weight="3"
  30.        android:orientation="vertical"
  31.        android:weightSum="4">
  32.  
  33.         <Button
  34.            android:layout_width="match_parent"
  35.            android:layout_height="0dp"
  36.            android:layout_weight="1" />
  37.  
  38.         <LinearLayout
  39.            android:layout_width="match_parent"
  40.            android:layout_height="0dp"
  41.            android:layout_weight="1"
  42.            android:orientation="horizontal"
  43.            android:weightSum="3">
  44.  
  45.             <Button
  46.                android:layout_width="0dp"
  47.                android:layout_height="match_parent"
  48.                android:layout_weight="1" />
  49.  
  50.             <Button
  51.                android:layout_width="0dp"
  52.                android:layout_height="match_parent"
  53.                android:layout_weight="1" />
  54.  
  55.             <Button
  56.                android:layout_width="0dp"
  57.                android:layout_height="match_parent"
  58.                android:layout_weight="1" />
  59.  
  60.         </LinearLayout>
  61.  
  62.         <LinearLayout
  63.            android:layout_width="match_parent"
  64.            android:layout_height="0dp"
  65.            android:layout_weight="1"
  66.            android:orientation="horizontal"
  67.            android:weightSum="3">
  68.  
  69.             <Button
  70.                android:layout_width="0dp"
  71.                android:layout_height="match_parent"
  72.                android:layout_weight="2" />
  73.  
  74.             <Button
  75.                android:layout_width="0dp"
  76.                android:layout_height="match_parent"
  77.                android:layout_weight="1" />
  78.  
  79.  
  80.         </LinearLayout>
  81.  
  82.         <LinearLayout
  83.            android:layout_width="match_parent"
  84.            android:layout_height="0dp"
  85.            android:layout_weight="1"
  86.            android:orientation="horizontal"
  87.            android:weightSum="3">
  88.  
  89.             <Button
  90.                android:layout_width="0dp"
  91.                android:layout_height="match_parent"
  92.                android:layout_weight="3" />
  93.  
  94.  
  95.         </LinearLayout>
  96.  
  97.  
  98.     </LinearLayout>
  99.  
  100. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement