Guest User

Untitled

a guest
Jan 17th, 2022
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 2.05 KB | None | 0 0
  1. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.     android:layout_width="match_parent"
  3.     android:layout_height="match_parent"
  4.     android:orientation="vertical">
  5.  
  6.     <!-- první řada -->
  7.     <LinearLayout
  8.         android:layout_width="match_parent"
  9.         android:layout_height="0dp"
  10.         android:layout_weight="1"
  11.         android:gravity="top"
  12.         android:orientation="horizontal">
  13.        
  14.  
  15.         <Button
  16.             android:id="@+id/button1"
  17.             android:text="Button 1"
  18.             android:layout_width="0dp"
  19.             android:layout_height="wrap_content"
  20.             android:layout_marginLeft="8dp"
  21.             android:layout_marginRight="8dp"
  22.             android:layout_weight="1"
  23.             android:gravity="center" />
  24.  
  25.         <Button
  26.             android:id="@+id/button2"
  27.             android:text="Button 2"
  28.             android:layout_width="0dp"
  29.             android:layout_weight="1"
  30.             android:layout_height="wrap_content"
  31.             android:layout_marginLeft="8dp"
  32.             android:layout_marginRight="8dp"
  33.             />
  34.     </LinearLayout>
  35.    
  36.     <!-- druha řada -->
  37.     <LinearLayout
  38.         android:layout_width="match_parent"
  39.         android:layout_height="0dp"
  40.         android:layout_weight="1"
  41.         android:gravity="top"
  42.         android:orientation="horizontal">
  43.        
  44.         <Button
  45.             android:id="@+id/button3"
  46.             android:text="Button 3"
  47.             android:layout_width="1dp"
  48.             android:layout_height="wrap_content"
  49.             android:layout_marginLeft="8dp"
  50.             android:layout_marginRight="8dp"
  51.             android:layout_weight="1"
  52.              />
  53.  
  54.         <Button
  55.             android:id="@+id/button4"
  56.             android:text="Button 4"
  57.             android:layout_width="0dp"
  58.             android:layout_weight="1"
  59.             android:layout_height="wrap_content"
  60.             android:layout_marginLeft="8dp"
  61.             android:layout_marginRight="8dp"
  62.             />
  63.     </LinearLayout>
  64.  
  65. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment