Advertisement
Guest User

Sign Up XML

a guest
May 29th, 2017
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.70 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:orientation="vertical"
  8. android:fitsSystemWindows="true">
  9.  
  10. <LinearLayout
  11. android:layout_width="fill_parent"
  12. android:layout_height="fill_parent"
  13. android:gravity="center"
  14. android:orientation="vertical"
  15. android:padding="@dimen/activity_horizontal_margin">
  16.  
  17.  
  18. <ImageView
  19. android:layout_width="132dp"
  20. android:layout_height="100dp"
  21. android:layout_gravity="center_horizontal"
  22. android:layout_marginBottom="30dp"
  23. android:src="@drawable/ic_logo1" />
  24.  
  25. <android.support.design.widget.TextInputLayout
  26. android:layout_width="match_parent"
  27. android:layout_height="wrap_content">
  28. <EditText
  29. android:id="@+id/username"
  30. android:layout_width="match_parent"
  31. android:layout_height="wrap_content"
  32. android:hint="Username"
  33. android:inputType="text"
  34. android:singleLine="true" />
  35. </android.support.design.widget.TextInputLayout>
  36. <android.support.design.widget.TextInputLayout
  37. android:layout_width="match_parent"
  38. android:layout_height="wrap_content">
  39. <EditText
  40. android:id="@+id/email"
  41. android:layout_width="match_parent"
  42. android:layout_height="wrap_content"
  43. android:hint="Email"
  44. android:inputType="textEmailAddress"
  45. android:singleLine="true" />
  46. </android.support.design.widget.TextInputLayout>
  47.  
  48. <android.support.design.widget.TextInputLayout
  49. android:layout_width="match_parent"
  50. android:layout_height="wrap_content">
  51. <EditText
  52. android:id="@+id/password"
  53. android:layout_width="match_parent"
  54. android:layout_height="wrap_content"
  55. android:focusableInTouchMode="true"
  56. android:hint="Pasword"
  57. android:imeActionId="@+id/login"
  58. android:imeOptions="actionUnspecified"
  59. android:inputType="textPassword"
  60. android:singleLine="true" />
  61. </android.support.design.widget.TextInputLayout>
  62.  
  63. <Button
  64. android:id="@+id/sign_up_button"
  65. style="?android:textAppearanceSmall"
  66. android:layout_width="match_parent"
  67. android:layout_height="wrap_content"
  68. android:layout_marginTop="16dp"
  69. android:background="@drawable/round"
  70. android:text="REGISTER"
  71. android:textColor="@color/colorWhite"
  72. android:textStyle="bold" />
  73.  
  74.  
  75. <!-- Link to Login Screen -->
  76.  
  77. <Button
  78. android:id="@+id/sign_in_button"
  79. android:layout_width="fill_parent"
  80. android:layout_height="wrap_content"
  81. android:layout_marginTop="10dp"
  82. android:background="@null"
  83. android:text="Already registered. Login here"
  84. android:textAllCaps="false"
  85. android:textSize="15dp" />
  86. </LinearLayout>
  87.  
  88. <ProgressBar
  89. android:id="@+id/progressBar"
  90. android:layout_width="30dp"
  91. android:layout_height="30dp"
  92. android:layout_gravity="center|bottom"
  93. android:layout_marginBottom="20dp"
  94. android:visibility="gone" />
  95. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement