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

Untitled

By: a guest on May 20th, 2013  |  syntax: XML  |  size: 1.43 KB  |  views: 15  |  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. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2.    xmlns:tools="http://schemas.android.com/tools"
  3.    android:layout_width="match_parent"
  4.    android:layout_height="match_parent"
  5.    android:paddingLeft="@dimen/activity_horizontal_margin"
  6.    android:paddingRight="@dimen/activity_horizontal_margin"
  7.    android:paddingTop="@dimen/activity_vertical_margin"
  8.    android:paddingBottom="@dimen/activity_vertical_margin"
  9.    tools:context=".Main">
  10.  
  11.     <EditText
  12.            android:layout_width="fill_parent"
  13.            android:layout_height="wrap_content"
  14.            android:id="@+id/txtItem" android:layout_alignParentTop="true"
  15.            android:layout_alignParentRight="true" android:layout_alignParentLeft="true" android:focusable="true"/>
  16.     <Button
  17.            android:layout_width="fill_parent"
  18.            android:layout_height="wrap_content"
  19.            android:text="@string/add"
  20.            android:id="@+id/btnAdd" android:layout_below="@+id/txtItem" android:layout_alignRight="@+id/txtItem"
  21.            android:layout_alignLeft="@+id/txtItem"/>
  22.     <ListView
  23.            android:layout_width="wrap_content"
  24.            android:layout_height="wrap_content"
  25.            android:id="@+id/listItems"
  26.            android:layout_alignParentRight="true" android:layout_alignParentLeft="true"
  27.            android:layout_alignParentBottom="true" android:layout_below="@+id/btnAdd"/>
  28. </RelativeLayout>
clone this paste RAW Paste Data