Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 13th, 2013  |  syntax: None  |  size: 2.43 KB  |  views: 59  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3.     android:layout_width="match_parent"
  4.     android:layout_height="match_parent"
  5.     android:layout_gravity="center_horizontal"
  6.     android:background="#FFFFFF"
  7.     android:orientation="vertical" >
  8.  
  9.     <TextView
  10.         android:id="@+id/textView2"
  11.         android:layout_width="wrap_content"
  12.         android:layout_height="wrap_content"
  13.         android:layout_alignLeft="@+id/textView1"
  14.         android:layout_below="@+id/textView1"
  15.         android:layout_marginTop="22dp"
  16.         android:text="@string/welcomeinfo"
  17.         android:textAppearance="?android:attr/textAppearanceSmall" />
  18.  
  19.     <TextView
  20.         android:id="@+id/textView1"
  21.         android:layout_width="wrap_content"
  22.         android:layout_height="wrap_content"
  23.         android:layout_alignParentLeft="true"
  24.         android:layout_alignParentTop="true"
  25.         android:layout_marginLeft="15dp"
  26.         android:layout_marginTop="19dp"
  27.         android:text="@string/welcome"
  28.         android:textAppearance="?android:attr/textAppearanceLarge" />
  29.  
  30.     <TextView
  31.         android:id="@+id/textView3"
  32.         android:layout_width="wrap_content"
  33.         android:layout_height="wrap_content"
  34.         android:layout_alignLeft="@+id/textView2"
  35.         android:layout_below="@+id/textView2"
  36.         android:layout_marginTop="18dp"
  37.         android:text="@string/links"
  38.         android:textAppearance="?android:attr/textAppearanceLarge" />
  39.  
  40.     <Button
  41.         android:id="@+id/news"
  42.         android:layout_width="wrap_content"
  43.         android:layout_height="wrap_content"
  44.         android:layout_alignLeft="@+id/textView3"
  45.         android:layout_below="@+id/textView3"
  46.         android:layout_marginTop="14dp"
  47.         android:text="@string/news" />
  48.  
  49.     <Button
  50.         android:id="@+id/canteen"
  51.         android:layout_width="wrap_content"
  52.         android:layout_height="wrap_content"
  53.         android:layout_alignTop="@+id/news"
  54.         android:layout_toRightOf="@+id/news"
  55.         android:text="@string/canteen" />
  56.  
  57.     <Button
  58.         android:id="@+id/moodle"
  59.         android:layout_width="wrap_content"
  60.         android:layout_height="wrap_content"
  61.         android:layout_alignBaseline="@+id/canteen"
  62.         android:layout_alignBottom="@+id/canteen"
  63.         android:layout_toRightOf="@+id/canteen"
  64.         android:text="@string/moodle" />
  65.  
  66. </RelativeLayout>
clone this paste RAW Paste Data