Advertisement
eddisusantoo

Gridlayout

Sep 19th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.83 KB | None | 0 0
  1. <GridLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:id="@+id/GridLayout1"
  4.    android:layout_width="wrap_content"
  5.    android:layout_height="wrap_content"
  6.    android:columnCount="2"
  7.    android:rowCount="2"
  8.    android:orientation="horizontal">
  9.     <Button
  10.        android:id="@+id/button1"
  11.        android:layout_gravity="left|top"
  12.        android:text="Button" />
  13.  
  14.     <Button
  15.        android:id="@+id/button2"
  16.        android:layout_gravity="left|top"
  17.        android:text="Button" />
  18.  
  19.     <Button
  20.        android:id="@+id/button3"
  21.        android:layout_gravity="left|top"
  22.        android:text="Button" />
  23.  
  24.     <Button
  25.        android:id="@+id/button4"
  26.        android:layout_gravity="left|top"
  27.        android:text="Button" />
  28. </GridLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement