Advertisement
abouttr3

layout button

Sep 5th, 2015
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 2.68 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:orientation="vertical" android:layout_width="match_parent"
  4.    android:layout_height="match_parent">
  5.  
  6.     <TableLayout
  7.        android:layout_width="match_parent"
  8.        android:layout_height="match_parent">
  9.  
  10.         <TableRow
  11.            android:layout_width="match_parent"
  12.            android:layout_height="match_parent">
  13.  
  14.             <Button
  15.                android:layout_width="wrap_content"
  16.                android:layout_height="wrap_content"
  17.                android:text="Default"
  18.                android:id="@+id/button"
  19.                style="@style/Button.default"
  20.                android:layout_column="0"
  21.                android:layout_weight="1" />
  22.  
  23.             <Button
  24.                android:layout_width="wrap_content"
  25.                android:layout_height="wrap_content"
  26.                android:text="Primary"
  27.                android:id="@+id/button2"
  28.                style="@style/Button.primary"
  29.                android:layout_column="1"
  30.                android:layout_weight="1" />
  31.  
  32.             <Button
  33.                style="@style/Button.success"
  34.                android:layout_width="wrap_content"
  35.                android:layout_height="wrap_content"
  36.                android:text="Success"
  37.                android:id="@+id/button3"
  38.                android:layout_column="2"
  39.                android:layout_weight="1" />
  40.         </TableRow>
  41.  
  42.         <TableRow
  43.            android:layout_width="match_parent"
  44.            android:layout_height="match_parent" >
  45.  
  46.             <Button
  47.                style="@style/Button.info"
  48.                android:layout_width="wrap_content"
  49.                android:layout_height="wrap_content"
  50.                android:text="Info"
  51.                android:id="@+id/button4"
  52.                android:layout_column="0"
  53.                android:layout_weight="1" />
  54.  
  55.             <Button
  56.                style="@style/Button.warning"
  57.                android:layout_width="wrap_content"
  58.                android:layout_height="wrap_content"
  59.                android:text="Warning"
  60.                android:id="@+id/button5"
  61.                android:layout_column="1"
  62.                android:layout_weight="1" />
  63.  
  64.             <Button
  65.                style="@style/Button.danger"
  66.                android:layout_width="wrap_content"
  67.                android:layout_height="wrap_content"
  68.                android:text="Danger"
  69.                android:id="@+id/button6"
  70.                android:layout_column="2"
  71.                android:layout_weight="1" />
  72.         </TableRow>
  73.     </TableLayout>
  74. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement