Guest User

Untitled

a guest
Feb 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.80 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout 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="wrap_content"
  7. android:background="@drawable/b15"
  8. tools:context="com.Register">
  9.  
  10. <ScrollView
  11. android:id="@+id/scrollView"
  12. android:layout_width="fill_parent"
  13. android:layout_height="fill_parent">
  14.  
  15.  
  16. <ImageView
  17. android:id="@+id/imageView"
  18. android:layout_width="match_parent"
  19. android:layout_height="50dp"
  20. android:layout_alignParentTop="true"
  21. android:layout_centerHorizontal="true"
  22. android:layout_marginTop="0dp"
  23. android:padding="10dp"
  24. app:srcCompat="@drawable/evote" />
  25.  
  26.  
  27. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  28.  
  29. android:layout_width="fill_parent"
  30. android:layout_height="50dp"
  31. android:id="@+id/lnlUsername"
  32. android:layout_alignParentStart="true"
  33. android:layout_below="@+id/imageView">
  34.  
  35.  
  36. <EditText
  37. android:id="@+id/txtUsername"
  38. android:layout_width="match_parent"
  39. android:layout_height="match_parent"
  40. android:layout_marginStart="45dp"
  41. android:layout_weight="0.01"
  42. android:ems="30"
  43. android:hint="Student ID"
  44. android:inputType="textPersonName"
  45. android:textSize="14sp" />
  46.  
  47.  
  48. </LinearLayout>
  49.  
  50.  
  51. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  52.  
  53. android:layout_width="fill_parent"
  54. android:layout_height="50dp"
  55. android:id="@+id/lnlFirstname"
  56. android:layout_below="@+id/lnlUsername"
  57. android:layout_alignParentStart="true">
  58.  
  59. <EditText
  60. android:id="@+id/txtFirstname"
  61. android:layout_width="match_parent"
  62. android:layout_height="match_parent"
  63. android:layout_marginStart="45dp"
  64. android:layout_weight="0.01"
  65. android:ems="30"
  66. android:hint="Firstname"
  67. android:inputType="textPersonName"
  68. android:textSize="14sp" />
  69.  
  70.  
  71. </LinearLayout>
  72.  
  73.  
  74.  
  75. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  76.  
  77. android:layout_width="fill_parent"
  78. android:layout_height="50dp"
  79. android:id="@+id/lnlSurname"
  80. android:layout_below="@+id/lnlFirstname"
  81. android:layout_alignParentStart="true">
  82.  
  83. <EditText
  84. android:id="@+id/txtSurname"
  85. android:layout_width="match_parent"
  86. android:layout_height="match_parent"
  87. android:layout_marginStart="45dp"
  88. android:layout_weight="0.01"
  89. android:ems="30"
  90. android:inputType="textPersonName"
  91. android:hint="Surname"
  92. android:textSize="14sp" />
  93.  
  94.  
  95. </LinearLayout>
  96.  
  97.  
  98. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  99.  
  100. android:layout_width="fill_parent"
  101. android:layout_height="50dp"
  102. android:id="@+id/lnlEmail"
  103. android:layout_below="@+id/lnlSurname"
  104. android:layout_alignParentStart="true">
  105.  
  106. <EditText
  107. android:id="@+id/txtEmail"
  108. android:layout_width="match_parent"
  109. android:layout_height="match_parent"
  110. android:layout_marginStart="45dp"
  111. android:layout_weight="0.01"
  112. android:ems="30"
  113. android:inputType="textEmailAddress"
  114. android:hint="Email"
  115. android:textSize="14sp" />
  116.  
  117.  
  118. </LinearLayout>
  119.  
  120.  
  121.  
  122. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  123.  
  124. android:layout_width="fill_parent"
  125. android:layout_height="50dp"
  126. android:id="@+id/lnlFaculty"
  127. android:layout_below="@+id/lnlEmail"
  128. android:layout_alignParentStart="true"
  129. android:weightSum="1">
  130.  
  131. <Spinner
  132. android:id="@+id/spfaculty"
  133. android:layout_width="match_parent"
  134. android:layout_height="39dp"
  135. android:layout_marginStart="45dp"
  136. android:entries="@array/faculty_arrays"
  137. android:prompt="@string/faculty_prompt"
  138. android:layout_weight="0.83" />
  139.  
  140.  
  141. </LinearLayout>
  142.  
  143.  
  144.  
  145.  
  146. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  147.  
  148. android:layout_width="fill_parent"
  149. android:layout_height="50dp"
  150. android:id="@+id/lnlSpquestions"
  151. android:layout_below="@+id/lnlFaculty"
  152. android:layout_alignParentStart="true"
  153. android:weightSum="1">
  154.  
  155. <Spinner
  156. android:id="@+id/spquestions"
  157. android:layout_width="match_parent"
  158. android:layout_height="39dp"
  159. android:layout_marginStart="45dp"
  160. android:entries="@array/question_arrays"
  161. android:prompt="@string/question_prompt"
  162. android:layout_weight="0.83" />
  163.  
  164.  
  165. </LinearLayout>
  166.  
  167.  
  168.  
  169. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  170.  
  171. android:layout_width="fill_parent"
  172. android:layout_height="50dp"
  173. android:id="@+id/lnlAnswer"
  174. android:layout_below="@+id/lnlSpquestions"
  175. android:layout_alignParentStart="true">
  176.  
  177. <EditText
  178. android:id="@+id/txtAnswer"
  179. android:layout_width="match_parent"
  180. android:layout_height="match_parent"
  181. android:layout_marginStart="45dp"
  182. android:layout_weight="0.01"
  183. android:ems="30"
  184. android:hint="Answer"
  185. android:inputType="textPersonName"
  186. android:textSize="14sp" />
  187.  
  188.  
  189. </LinearLayout>
  190.  
  191.  
  192.  
  193.  
  194. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  195.  
  196. android:layout_width="fill_parent"
  197. android:layout_height="50dp"
  198. android:id="@+id/lnlPassword"
  199. android:layout_alignParentStart="true"
  200. android:layout_below="@+id/lnlAnswer">
  201.  
  202.  
  203.  
  204. <EditText
  205. android:id="@+id/txtPassword"
  206. android:layout_width="match_parent"
  207. android:layout_height="match_parent"
  208. android:layout_marginStart="45dp"
  209. android:layout_weight="0.01"
  210. android:ems="30"
  211. android:inputType="textPassword"
  212. android:hint="Password"
  213. android:textSize="14sp" />
  214.  
  215.  
  216. </LinearLayout>
  217.  
  218.  
  219.  
  220. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  221.  
  222. android:layout_width="fill_parent"
  223. android:layout_height="50dp"
  224. android:id="@+id/lnlConfirmPassword"
  225. android:layout_below="@+id/lnlPassword"
  226. android:layout_alignParentStart="true">
  227.  
  228. <EditText
  229. android:id="@+id/txtConfirmPassword"
  230. android:layout_width="match_parent"
  231. android:layout_height="match_parent"
  232. android:layout_marginStart="45dp"
  233. android:layout_weight="0.01"
  234. android:ems="30"
  235. android:inputType="textPassword"
  236. android:hint="Confirm Password"
  237. android:textSize="14sp" />
  238.  
  239.  
  240. </LinearLayout>
  241.  
  242.  
  243. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  244.  
  245. android:layout_width="fill_parent"
  246. android:layout_height="50dp"
  247. android:id="@+id/lnlRegister"
  248. android:layout_below="@+id/lnlConfirmPassword"
  249. android:layout_alignParentStart="true">
  250.  
  251. <Button
  252. android:id="@+id/btnregisterstudent"
  253. style="@style/Base.TextAppearance.AppCompat.Body2"
  254. android:layout_width="match_parent"
  255. android:layout_height="45dp"
  256. android:layout_centerHorizontal="true"
  257. android:layout_gravity="center_horizontal"
  258. android:layout_marginTop="20dp"
  259. android:background="#ff944d"
  260. android:clickable="true"
  261. android:layout_marginStart="20dp"
  262. android:padding="10dp"
  263. android:layout_marginEnd="20dp"
  264. android:text="Register"
  265. android:textAllCaps="false"
  266. android:textColor="#fff"
  267. android:textSize="15sp" />
  268.  
  269.  
  270. </LinearLayout>
  271. </ScrollView>
  272.  
  273. </RelativeLayout>
Add Comment
Please, Sign In to add comment