Maruf_Hasan

login_xml

Nov 28th, 2019
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.15 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="match_parent"
  7. tools:context=".LoginActivity">
  8.  
  9.  
  10. <ScrollView
  11. android:layout_width="match_parent"
  12. android:layout_height="match_parent"
  13. android:layout_alignParentStart="true"
  14. android:layout_alignParentTop="true"
  15. android:layout_centerVertical="true"
  16. android:layout_marginStart="8dp"
  17. android:layout_marginTop="115dp">
  18.  
  19. <RelativeLayout
  20. android:layout_width="match_parent"
  21. android:layout_height="wrap_content">
  22. <ImageView
  23. android:id="@+id/login_image"
  24. android:layout_width="match_parent"
  25. android:layout_height="250dp"
  26. android:src="@drawable/login_photo"
  27. android:layout_alignParentStart="true"
  28. android:layout_alignParentTop="true"
  29. android:scaleType="fitCenter"
  30. />
  31. <EditText
  32. android:id="@+id/login_email"
  33. android:layout_width="match_parent"
  34. android:layout_height="wrap_content"
  35. android:layout_alignParentStart="true"
  36. android:layout_below="@+id/login_image"
  37. android:hint="Email..........."
  38. android:inputType="textEmailAddress"
  39. android:background="@drawable/inputs"
  40. android:padding="4dp"
  41. android:drawableStart="@drawable/email"
  42. android:layout_marginTop="25dp"
  43. android:layout_marginLeft="17dp"
  44. android:layout_marginRight="17dp"
  45.  
  46. />
  47.  
  48. <EditText
  49. android:id="@+id/login_password"
  50. android:layout_width="match_parent"
  51. android:layout_height="wrap_content"
  52. android:layout_alignParentStart="true"
  53. android:layout_below="@+id/login_email"
  54. android:hint="Enter Password..........."
  55. android:inputType="textPassword"
  56. android:background="@drawable/inputs"
  57. android:padding="4dp"
  58. android:drawableStart="@drawable/password"
  59. android:layout_marginTop="10dp"
  60. android:layout_marginLeft="17dp"
  61. android:layout_marginRight="17dp"
  62.  
  63. />
  64.  
  65. <TextView
  66. android:id="@+id/forget_password_link"
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_centerHorizontal="true"
  70. android:layout_below="@+id/login_password"
  71. android:layout_marginTop="2dp"
  72. android:layout_marginLeft="15dp"
  73. android:layout_marginRight="23dp"
  74. android:text="Forget PassWord ?"
  75. android:textAlignment="textEnd"
  76. android:textSize="17sp"
  77. android:textStyle="bold"
  78. android:textColor="@color/colorPrimaryDark"
  79. />
  80.  
  81.  
  82.  
  83.  
  84. <Button
  85. android:id="@+id/login_button"
  86. android:layout_width="match_parent"
  87. android:layout_height="wrap_content"
  88. android:layout_below="@+id/forget_password_link"
  89. android:padding="4dp"
  90. android:layout_marginTop="4dp"
  91. android:layout_marginLeft="19dp"
  92. android:layout_marginRight="19dp"
  93. android:text="LogIn"
  94. android:textAllCaps="false"
  95. android:textSize="24sp"
  96. android:textColor="@android:color/background_light"
  97. android:background="@drawable/buttons"
  98. />
  99.  
  100. <TextView
  101. android:id="@+id/need_new_account_link"
  102. android:layout_width="match_parent"
  103. android:layout_height="wrap_content"
  104. android:layout_centerHorizontal="true"
  105. android:layout_below="@+id/login_button"
  106. android:layout_marginTop="2dp"
  107. android:layout_marginLeft="15dp"
  108. android:layout_marginRight="23dp"
  109. android:text="Already have an Account ?"
  110. android:textAlignment="center"
  111. android:textSize="17sp"
  112. android:textStyle="bold"
  113. android:textColor="@color/colorPrimaryDark"
  114. />
  115.  
  116.  
  117. <TextView
  118. android:id="@+id/login_using"
  119. android:layout_width="match_parent"
  120. android:layout_height="wrap_content"
  121. android:layout_centerHorizontal="true"
  122. android:layout_below="@+id/need_new_account_link"
  123. android:layout_marginTop="10dp"
  124. android:layout_marginLeft="15dp"
  125. android:layout_marginRight="23dp"
  126. android:text="Or Log in using your "
  127. android:textAlignment="center"
  128. android:textSize="17sp"
  129. android:textStyle="bold"
  130.  
  131. />
  132.  
  133. <Button
  134. android:id="@+id/phone_login_button"
  135. android:layout_width="match_parent"
  136. android:layout_height="wrap_content"
  137. android:layout_below="@+id/login_using"
  138. android:padding="4dp"
  139. android:layout_marginTop="4dp"
  140. android:layout_marginLeft="19dp"
  141. android:layout_marginRight="19dp"
  142. android:text="Phone"
  143. android:textAllCaps="false"
  144. android:textSize="14sp"
  145. android:textColor="@android:color/background_light"
  146. android:background="@drawable/buttons"
  147. android:drawableStart="@drawable/phone"
  148. />
  149.  
  150.  
  151.  
  152.  
  153.  
  154.  
  155.  
  156. </RelativeLayout>
  157. </ScrollView>
  158. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment