Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.51 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:app="http://schemas.android.com/apk/res-auto"
  5. xmlns:tools="http://schemas.android.com/tools"
  6. android:layout_width="match_parent"
  7. android:layout_height="match_parent"
  8. android:background="@color/azure"
  9. tools:context=".MerchantSignUp">
  10.  
  11. <android.support.v7.widget.CardView
  12. android:layout_width="match_parent"
  13. android:layout_height="wrap_content"
  14. android:layout_centerInParent="true"
  15. android:layout_marginBottom="20dp"
  16. android:layout_marginLeft="10dp"
  17. android:layout_marginRight="10dp"
  18. android:layout_marginTop="20dp"
  19. app:cardCornerRadius="10dp"
  20. app:cardElevation="3dp"
  21. app:cardPreventCornerOverlap="false"
  22. app:cardUseCompatPadding="true">
  23.  
  24. <ScrollView
  25. android:layout_width="match_parent"
  26. android:layout_height="match_parent"
  27.  
  28. >
  29.  
  30. <RelativeLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="wrap_content">
  33.  
  34. <LinearLayout
  35. android:id="@+id/linearL1"
  36. android:layout_width="match_parent"
  37. android:layout_height="wrap_content"
  38. android:background="@color/colorPrimary"
  39. android:gravity="center_horizontal"
  40. android:orientation="vertical">
  41.  
  42. <ImageView
  43. android:layout_width="50dp"
  44. android:layout_height="50dp"
  45. android:contentDescription="@string/desc"
  46. android:layout_marginTop="20dp"
  47. android:background="@drawable/circle"
  48. android:padding="10dp"
  49. android:src="@drawable/register"
  50. android:tint="@color/white" />
  51.  
  52. <TextView
  53. android:layout_width="wrap_content"
  54. android:layout_height="wrap_content"
  55. android:layout_marginBottom="20dp"
  56. android:layout_marginTop="10dp"
  57. android:fontFamily="sans-serif-medium"
  58. android:text="SIGN UP"
  59. android:textColor="@color/white"
  60. android:textSize="22sp" />
  61. </LinearLayout>
  62.  
  63. <ImageView
  64. android:id="@+id/imageView1"
  65. android:contentDescription="@string/desc"
  66. android:layout_width="20dp"
  67. android:layout_height="20dp"
  68. android:layout_below="@+id/linearL1"
  69. android:layout_centerHorizontal="true"
  70. android:layout_marginTop="-10dp"
  71. android:rotation="45"
  72. android:src="@drawable/square" />
  73.  
  74.  
  75.  
  76. <LinearLayout
  77. android:id="@+id/container_linear"
  78. android:layout_width="match_parent"
  79. android:layout_height="wrap_content"
  80. android:orientation="vertical"
  81. android:layout_below="@+id/imageView1"
  82. android:layout_marginLeft="10dp"
  83. android:layout_marginRight="10dp"
  84. android:layout_marginTop="30dp"
  85. >
  86.  
  87. <EditText
  88. android:id="@+id/PbrandName"
  89. android:layout_width="match_parent"
  90. android:layout_height="wrap_content"
  91. android:background="@drawable/edittextstyle"
  92. android:hint="Brand Name"
  93. android:inputType="text"
  94. android:textSize="15sp" />
  95.  
  96. <LinearLayout
  97. android:layout_width="match_parent"
  98. android:layout_height="wrap_content"
  99. android:orientation="horizontal"
  100. android:layout_marginTop="15dp"
  101. android:layout_marginLeft="15dp"
  102. android:layout_marginRight="10dp"
  103. >
  104. <TextView
  105. android:layout_width="match_parent"
  106. android:layout_height="wrap_content"
  107. android:text="photo :"
  108. android:textSize="17sp"
  109. android:layout_weight="4"
  110. android:layout_marginTop="20dp"
  111. />
  112.  
  113. <ImageButton
  114. android:id="@+id/PickImagePlace"
  115. android:contentDescription="@string/desc"
  116. android:layout_width="match_parent"
  117. android:layout_height="wrap_content"
  118. android:layout_marginTop="-5dp"
  119. android:layout_weight="2"
  120. android:backgroundTint="@color/white"
  121. app:srcCompat="@drawable/upload_image" />
  122.  
  123. </LinearLayout>
  124. <RelativeLayout
  125. android:layout_width="wrap_content"
  126. android:layout_height="wrap_content"
  127. android:layout_marginTop="10dp"
  128. >
  129.  
  130. <TextView
  131. android:layout_width="wrap_content"
  132. android:layout_height="wrap_content"
  133. android:text="category:"
  134. android:id="@+id/cat"
  135. android:layout_marginLeft="10dp"
  136. android:paddingRight="10dp"
  137. />
  138.  
  139. <Spinner
  140. android:id="@+id/spinner2"
  141. android:layout_marginRight="5dp"
  142. android:layout_width="match_parent"
  143. android:layout_height="wrap_content"
  144. android:layout_toRightOf="@+id/cat"
  145. />
  146.  
  147.  
  148. </RelativeLayout>
  149.  
  150. <ImageView
  151. android:id="@+id/placeUploadedImage"
  152. android:layout_width="match_parent"
  153. android:contentDescription="@string/desc"
  154. android:layout_height="200dp"
  155. android:visibility="gone"
  156. android:layout_marginBottom="10dp"
  157. android:adjustViewBounds="true"
  158. android:contextClickable="false"
  159. android:layout_marginTop="15dp"
  160. app:srcCompat="@drawable/profile_pic" />
  161.  
  162. <LinearLayout
  163. android:layout_width="match_parent"
  164. android:layout_height="wrap_content"
  165. android:layout_marginLeft="10dp"
  166. android:layout_marginRight="10dp"
  167. android:layout_marginTop="15dp"
  168. android:orientation="vertical"
  169. >
  170.  
  171.  
  172. <EditText
  173. android:id="@+id/Pemail"
  174. android:layout_width="match_parent"
  175. android:layout_height="wrap_content"
  176. android:layout_weight="1"
  177. android:textSize="15sp"
  178. android:layout_marginTop="15dp"
  179. android:background="@drawable/edittextstyle"
  180. android:ems="10"
  181. android:hint="Email"
  182. android:inputType="textEmailAddress" />
  183.  
  184.  
  185.  
  186. <EditText
  187. android:id="@+id/Ppassword"
  188. android:layout_width="match_parent"
  189. android:layout_height="wrap_content"
  190. android:layout_marginTop="15dp"
  191. android:layout_weight="1"
  192. android:textSize="15sp"
  193. android:background="@drawable/edittextstyle"
  194. android:ems="10"
  195. android:hint="PassWord"
  196. android:inputType="textPassword" />
  197. </LinearLayout>
  198.  
  199.  
  200.  
  201.  
  202. <Button
  203. android:id="@+id/button_signup"
  204. android:layout_width="match_parent"
  205. android:layout_height="wrap_content"
  206. android:layout_marginLeft="30dp"
  207. android:layout_marginRight="30dp"
  208. android:layout_marginBottom="15dp"
  209. android:layout_marginTop="30dp"
  210. android:background="@color/colorPrimary"
  211. android:fontFamily="sans-serif-medium"
  212. android:text="Sign Up"
  213. android:textColor="@color/white" />
  214. </LinearLayout>
  215.  
  216. </RelativeLayout>
  217. </ScrollView>
  218. </android.support.v7.widget.CardView>
  219.  
  220.  
  221.  
  222. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement