IT-Academy

XML Login

Jul 5th, 2016
274
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.58 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.     <TextView
  12.        android:id="@+id/textView1"
  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_alignParentTop="true"
  18.        android:text="@string/login"
  19.        android:textAppearance="?android:attr/textAppearanceMedium" />
  20.  
  21.     <EditText
  22.        android:id="@+id/login"
  23.        android:layout_width="wrap_content"
  24.        android:layout_height="wrap_content"
  25.        android:layout_alignLeft="@+id/textView1"
  26.        android:layout_alignParentRight="true"
  27.        android:layout_below="@+id/textView1"
  28.        android:ems="10"
  29.        android:hint="@string/insert_login" />
  30.  
  31.     <Button
  32.        android:id="@+id/save"
  33.        android:layout_width="wrap_content"
  34.        android:layout_height="wrap_content"
  35.        android:layout_alignParentLeft="true"
  36.        android:layout_alignParentRight="true"
  37.        android:layout_below="@+id/login"
  38.        android:onClick="save"
  39.        android:text="@string/save" />
  40.  
  41. </RelativeLayout>
Advertisement
Comments
  • User was banned
Add Comment
Please, Sign In to add comment