IT-Academy

XML Databaza

Jul 5th, 2016
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.94 KB | None | 0 0
  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:paddingBottom="@dimen/activity_vertical_margin"
  6.    android:paddingLeft="@dimen/activity_horizontal_margin"
  7.    android:paddingRight="@dimen/activity_horizontal_margin"
  8.    android:paddingTop="@dimen/activity_vertical_margin"
  9.    tools:context=".MainActivity" >
  10.  
  11.     <EditText
  12.        android:id="@+id/email"
  13.        android:layout_width="wrap_content"
  14.        android:layout_height="wrap_content"
  15.        android:layout_alignParentLeft="true"
  16.        android:layout_alignParentRight="true"
  17.        android:layout_below="@+id/id"
  18.        android:ems="10"
  19.        android:hint="@string/email"
  20.        android:inputType="textEmailAddress" />
  21.  
  22.     <TextView
  23.        android:id="@+id/textView1"
  24.        android:layout_width="wrap_content"
  25.        android:layout_height="wrap_content"
  26.        android:layout_alignParentTop="true"
  27.        android:layout_centerHorizontal="true"
  28.        android:text="@string/new_record"
  29.        android:textAppearance="?android:attr/textAppearanceMedium" />
  30.  
  31.     <EditText
  32.        android:id="@+id/id"
  33.        android:layout_width="wrap_content"
  34.        android:layout_height="wrap_content"
  35.        android:layout_alignLeft="@+id/email"
  36.        android:layout_alignParentRight="true"
  37.        android:layout_below="@+id/textView1"
  38.        android:ems="10"
  39.        android:hint="@string/id"
  40.        android:inputType="number" />
  41.  
  42.     <Button
  43.        android:id="@+id/button1"
  44.        android:layout_width="wrap_content"
  45.        android:layout_height="wrap_content"
  46.        android:layout_alignParentLeft="true"
  47.        android:layout_alignParentRight="true"
  48.        android:layout_below="@+id/email"
  49.        android:onClick="save"
  50.        android:text="@string/save" />
  51.  
  52. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment