Advertisement
huertz

PCv2 layout

Apr 25th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 4.12 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:orientation="vertical">
  6.  
  7.     <LinearLayout
  8.        android:layout_width="match_parent"
  9.        android:layout_height="wrap_content"
  10.        android:layout_weight="4"
  11.        android:background="@color/black">
  12.         <Button
  13.            android:id="@+id/But1"
  14.            android:layout_width="0dp"
  15.            android:layout_height="match_parent"
  16.            android:layout_weight="1"
  17.            android:layout_margin="5dp"
  18.            android:textSize="24dp"
  19.            android:background="@color/green" />
  20.         <Button
  21.            android:id="@+id/But2"
  22.            android:layout_width="0dp"
  23.            android:layout_height="match_parent"
  24.            android:layout_weight="1"
  25.            android:layout_margin="5dp"
  26.            android:textSize="24dp"
  27.            android:background="@color/green"/>
  28.  
  29.         <Button
  30.            android:id="@+id/But3"
  31.            android:layout_width="0dp"
  32.            android:layout_height="match_parent"
  33.            android:layout_weight="1"
  34.            android:layout_margin="5dp"
  35.            android:textSize="24dp"
  36.            android:background="@color/green"/>
  37.     </LinearLayout>
  38.  
  39.     <LinearLayout
  40.        android:layout_width="match_parent"
  41.        android:layout_height="wrap_content"
  42.        android:layout_weight="4"
  43.        android:background="@color/black">
  44.         <Button
  45.            android:id="@+id/But4"
  46.            android:layout_width="0dp"
  47.            android:layout_height="match_parent"
  48.            android:layout_weight="1"
  49.            android:layout_margin="5dp"
  50.            android:textSize="24dp"
  51.            android:background="@color/green"/>
  52.         <Button
  53.            android:id="@+id/But5"
  54.            android:layout_width="0dp"
  55.            android:layout_height="match_parent"
  56.            android:layout_weight="1"
  57.            android:layout_margin="5dp"
  58.            android:textSize="24dp"
  59.            android:background="@color/green"/>
  60.         <Button
  61.            android:id="@+id/But6"
  62.            android:layout_width="0dp"
  63.            android:layout_height="match_parent"
  64.            android:layout_weight="1"
  65.            android:layout_margin="5dp"
  66.            android:textSize="24dp"
  67.            android:background="@color/green"/>
  68.     </LinearLayout>
  69.  
  70.     <LinearLayout
  71.        android:layout_width="match_parent"
  72.        android:layout_height="wrap_content"
  73.        android:layout_weight="4"
  74.        android:background="@color/black">
  75.         <Button
  76.            android:id="@+id/But7"
  77.            android:layout_width="0dp"
  78.            android:layout_height="match_parent"
  79.            android:layout_weight="1"
  80.            android:layout_margin="5dp"
  81.            android:textSize="24dp"
  82.            android:background="@color/green"/>
  83.         <Button
  84.            android:id="@+id/But8"
  85.            android:layout_width="0dp"
  86.            android:layout_height="match_parent"
  87.            android:layout_weight="1"
  88.            android:layout_margin="5dp"
  89.            android:textSize="24dp"
  90.            android:background="@color/green"/>
  91.         <Button
  92.            android:id="@+id/But9"
  93.            android:layout_width="0dp"
  94.            android:layout_height="match_parent"
  95.            android:layout_weight="1"
  96.            android:layout_margin="5dp"
  97.            android:textSize="24dp"
  98.            android:background="@color/green"/>
  99.     </LinearLayout>
  100.  
  101.     <LinearLayout
  102.        android:layout_width="match_parent"
  103.        android:layout_height="wrap_content"
  104.        android:layout_weight="3"
  105.        android:background="@color/black">
  106.         <TextView
  107.            android:id="@+id/tviMensaje"
  108.            android:layout_width="match_parent"
  109.            android:layout_height="match_parent"
  110.            android:gravity="center_vertical"
  111.            android:layout_margin="5dp"
  112.            android:textSize="18dp"
  113.            android:background="@color/green" />
  114.     </LinearLayout>
  115.  
  116. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement