activity_custom_sign_dialog.xml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout
  3. xmlns:android="http://schemas.android.com/apk/res/android"
  4. android:layout_width="match_parent"
  5. android:layout_height="match_parent"
  6. android:layout_marginVertical="200dp"
  7. xmlns:app="http://schemas.android.com/apk/res-auto"
  8. android:background="@drawable/department_layer">
  9. <LinearLayout
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:layout_centerInParent="true"
  13. android:background="@drawable/department_layer"
  14. android:orientation="vertical">
  15. <RelativeLayout
  16. android:layout_width="match_parent"
  17. android:layout_height="wrap_content"
  18. android:layout_margin="2dp"
  19. android:background="@color/commonColor">
  20. <TextView
  21. android:id="@+id/tvTitle"
  22. android:layout_width="match_parent"
  23. android:layout_height="wrap_content"
  24. android:layout_margin="12dp"
  25. android:text="@string/signDialog"
  26. android:textColor="@color/white"
  27. android:textSize="20sp"
  28. android:textStyle="bold" />
  29. </RelativeLayout>
  30. <LinearLayout
  31. android:layout_width="match_parent"
  32. android:layout_height="match_parent"
  33. android:orientation="vertical"
  34. android:layout_marginTop="12dp"
  35. android:layout_marginLeft="14dp"
  36. android:layout_marginRight="14dp"
  37. android:weightSum="1">
  38. <LinearLayout
  39. android:layout_width="match_parent"
  40. android:layout_height="match_parent"
  41. android:background="@drawable/layout_edge"
  42. android:layout_weight="0.25"
  43. android:layout_marginBottom="14dp"
  44. android:weightSum="4"
  45. android:orientation="vertical">
  46. <LinearLayout
  47. android:layout_width="match_parent"
  48. android:layout_height="match_parent"
  49. android:layout_weight="3"
  50. android:gravity="center"
  51. android:weightSum="1"
  52. android:orientation="horizontal" >
  53. <TextView
  54. android:layout_width="match_parent"
  55. android:layout_height="wrap_content"
  56. android:layout_weight="0.25"
  57. android:gravity="center"
  58. android:text="@string/userId"
  59. android:textSize="20sp"
  60. android:textStyle="bold"
  61. android:textColor="@color/black" />
  62. <View
  63. android:layout_width="1dp"
  64. android:layout_height="match_parent"
  65. android:background="@color/black" />
  66. <LinearLayout
  67. android:layout_width="match_parent"
  68. android:layout_height="wrap_content"
  69. android:layout_weight="0.25"
  70. android:weightSum="1"
  71. android:orientation="horizontal">
  72. <EditText
  73. android:id="@+id/etUserId"
  74. android:layout_width="match_parent"
  75. android:layout_height="wrap_content"
  76. android:layout_weight="0.2"
  77. android:enabled="false"
  78. android:gravity="center"
  79. android:textSize="20sp"
  80. android:singleLine="true"
  81. android:selectAllOnFocus="true"
  82. app:theme="@style/EditTextStyle"/>
  83. <!-- ImageView
  84. android:layout_width="match_parent"
  85. android:layout_height="match_parent"
  86. android:layout_margin="4dp"
  87. android:layout_weight="0.8"
  88. android:src="@drawable/ic_search_black_24dp"/ -->
  89. </LinearLayout>
  90. <View
  91. android:layout_width="1dp"
  92. android:layout_height="match_parent"
  93. android:background="@color/black" />
  94. <TextView
  95. android:layout_width="match_parent"
  96. android:layout_height="wrap_content"
  97. android:layout_weight="0.25"
  98. android:gravity="center"
  99. android:text="@string/userNm"
  100. android:textStyle="bold"
  101. android:textSize="20sp"
  102. android:textColor="@color/black" />
  103. <View
  104. android:layout_width="1dp"
  105. android:layout_height="match_parent"
  106. android:background="@color/black" />
  107. <TextView
  108. android:id="@+id/tvUserNm"
  109. android:layout_width="match_parent"
  110. android:layout_height="wrap_content"
  111. android:layout_weight="0.25"
  112. android:gravity="center"
  113. android:textSize="20sp"
  114. android:autoSizeMaxTextSize="20sp"
  115. android:autoSizeMinTextSize="8sp"
  116. android:autoSizeStepGranularity="2sp"
  117. android:autoSizeTextType="uniform"
  118. android:singleLine="false"
  119. android:textColor="@color/black" />
  120. </LinearLayout>
  121. <View
  122. android:layout_width="match_parent"
  123. android:layout_height="1dp"
  124. android:background="@color/black" />
  125. <LinearLayout
  126. android:layout_width="match_parent"
  127. android:layout_height="match_parent"
  128. android:gravity="center"
  129. android:layout_weight="1"
  130. android:weightSum="1"
  131. android:orientation="horizontal" >
  132. <TextView
  133. android:layout_width="match_parent"
  134. android:layout_height="match_parent"
  135. android:layout_weight="0.75"
  136. android:gravity="center"
  137. android:text="@string/signImage"
  138. android:textStyle="bold"
  139. android:textSize="20sp"
  140. android:textColor="@color/black" />
  141. <View
  142. android:layout_width="1dp"
  143. android:layout_height="match_parent"
  144. android:background="@color/black" />
  145. <LinearLayout
  146. android:layout_width="match_parent"
  147. android:layout_height="match_parent"
  148. android:orientation="horizontal"
  149. android:layout_weight="0.25" >
  150. <RelativeLayout
  151. android:layout_width="match_parent"
  152. android:layout_height="match_parent">
  153. <com.github.gcacace.signaturepad.views.SignaturePad
  154. android:id="@+id/spSignImage"
  155. android:layout_width="match_parent"
  156. android:layout_height="match_parent"
  157. android:layout_margin="16dp"
  158. app:penColor="@color/black" />
  159. <!-- <com.github.chrisbanes.photoview.PhotoView-->
  160. <!-- android:id="@+id/ivSignImage"-->
  161. <!-- android:layout_width="match_parent"-->
  162. <!-- android:layout_height="match_parent"-->
  163. <!-- android:layout_margin="16dp"/>-->
  164. <LinearLayout
  165. android:id="@+id/startSignLayout"
  166. android:layout_width="match_parent"
  167. android:layout_height="match_parent" />
  168. </RelativeLayout>
  169. </LinearLayout>
  170. </LinearLayout>
  171. </LinearLayout>
  172. <LinearLayout
  173. android:id="@+id/btnLayout"
  174. android:layout_width="match_parent"
  175. android:layout_height="match_parent"
  176. android:orientation="horizontal"
  177. android:layout_weight="0.75"
  178. android:layout_marginBottom="2dp"
  179. android:gravity="center"
  180. android:background="@xml/border_top">
  181. <Button
  182. android:id="@+id/btnConfirm"
  183. style="?android:attr/borderlessButtonStyle"
  184. android:layout_width="match_parent"
  185. android:layout_height="match_parent"
  186. android:layout_weight="1"
  187. android:layout_marginTop="14dp"
  188. android:layout_marginBottom="12dp"
  189. android:layout_marginLeft="48dp"
  190. android:layout_marginRight="10dp"
  191. android:background="@drawable/shape2"
  192. android:textColor="@color/white"
  193. android:textSize="16sp"
  194. android:text="@string/confirm"/>
  195. <Button
  196. android:id="@+id/btnCancel"
  197. style="?android:attr/borderlessButtonStyle"
  198. android:layout_width="match_parent"
  199. android:layout_height="match_parent"
  200. android:layout_weight="1"
  201. android:layout_marginTop="14dp"
  202. android:layout_marginBottom="12dp"
  203. android:layout_marginLeft="10dp"
  204. android:layout_marginRight="48dp"
  205. android:text="@string/cancel"
  206. android:textColor="@color/white"
  207. android:textSize="16sp"
  208. android:background="@drawable/shape2" />
  209. </LinearLayout>
  210. </LinearLayout>
  211. </LinearLayout>
  212. </RelativeLayout>