Advertisement
Guest User

Untitled

a guest
Feb 27th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.87 KB | None | 0 0
  1. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  2. android:id="@+id/main_layout"
  3. android:layout_width="fill_parent"
  4. android:layout_height="fill_parent"
  5. android:background="@android:color/black"
  6. android:clickable="true">
  7.  
  8.  
  9.  
  10. <TableLayout
  11. android:id="@+id/keyboard_layout"
  12. android:layout_width="match_parent"
  13. android:layout_height="match_parent"
  14. >
  15.  
  16. <View
  17. android:layout_width="match_parent"
  18. android:layout_height="0.5dp"
  19. android:background="#e5e5e5" />
  20.  
  21.  
  22. <TableRow
  23. android:layout_width="match_parent"
  24. android:layout_height="0dp"
  25. android:layout_weight="1">
  26.  
  27.  
  28. <Button
  29. android:id="@+id/keyboard_one"
  30. android:layout_width="0dp"
  31. android:layout_height="match_parent"
  32. android:layout_weight="0.33"
  33. android:background="@null"
  34. android:clickable="true"
  35. android:gravity="center"
  36. android:text="1"
  37. android:textColor="#4d4d4d"
  38. android:textSize="@dimen/u_common_text_size_medium_large"
  39. />
  40.  
  41. <View
  42. android:layout_width="0.5dp"
  43. android:layout_height="match_parent"
  44. android:background="#e5e5e5" />
  45.  
  46.  
  47. <Button
  48. android:id="@+id/keyboard_two"
  49. android:layout_width="0dp"
  50. android:layout_height="match_parent"
  51. android:layout_weight="0.33"
  52. android:background="@null"
  53. android:clickable="true"
  54. android:gravity="center"
  55. android:text="2"
  56. android:textColor="#4d4d4d"
  57. android:textSize="@dimen/u_common_text_size_medium_large"
  58.  
  59. />
  60.  
  61. <View
  62. android:layout_width="0.5dp"
  63. android:layout_height="match_parent"
  64. android:background="#e5e5e5" />
  65.  
  66.  
  67. <Button
  68. android:id="@+id/keyboard_three"
  69. android:layout_width="0dp"
  70. android:layout_height="match_parent"
  71. android:layout_weight="0.33"
  72. android:background="@null"
  73. android:clickable="true"
  74. android:gravity="center"
  75. android:text="3"
  76. android:textColor="#4d4d4d"
  77. android:textSize="@dimen/u_common_text_size_medium_large"
  78.  
  79. />
  80.  
  81. </TableRow>
  82.  
  83. <View
  84. android:layout_width="match_parent"
  85. android:layout_height="0.5dp"
  86. android:background="#e5e5e5" />
  87.  
  88.  
  89. <TableRow
  90. android:layout_width="match_parent"
  91. android:layout_height="0dp"
  92. android:layout_weight="1">
  93.  
  94.  
  95. <Button
  96. android:id="@+id/keyboard_four"
  97. android:layout_width="0dp"
  98. android:layout_height="match_parent"
  99. android:layout_weight="0.33"
  100. android:background="@null"
  101. android:clickable="true"
  102. android:gravity="center"
  103. android:text="4"
  104. android:textColor="#4d4d4d"
  105. android:textSize="@dimen/u_common_text_size_medium_large"
  106.  
  107.  
  108. />
  109.  
  110. <View
  111. android:layout_width="0.5dp"
  112. android:layout_height="match_parent"
  113. android:background="#e5e5e5" />
  114.  
  115.  
  116. <Button
  117. android:id="@+id/keyboard_five"
  118. android:layout_width="0dp"
  119. android:layout_height="match_parent"
  120. android:layout_weight="0.33"
  121. android:background="@null"
  122. android:clickable="true"
  123. android:gravity="center"
  124. android:text="5"
  125. android:textColor="#4d4d4d"
  126. android:textSize="@dimen/u_common_text_size_medium_large"
  127.  
  128.  
  129. />
  130.  
  131. <View
  132. android:layout_width="0.5dp"
  133. android:layout_height="match_parent"
  134. android:background="#e5e5e5" />
  135.  
  136.  
  137. <Button
  138. android:id="@+id/keyboard_six"
  139. android:layout_width="0dp"
  140. android:layout_height="match_parent"
  141. android:layout_weight="0.33"
  142. android:background="@null"
  143. android:clickable="true"
  144. android:gravity="center"
  145. android:text="6"
  146. android:textColor="#4d4d4d"
  147. android:textSize="@dimen/u_common_text_size_medium_large"
  148.  
  149.  
  150. />
  151. </TableRow>
  152.  
  153. <View
  154. android:layout_width="match_parent"
  155. android:layout_height="0.5dp"
  156. android:background="#e5e5e5" />
  157.  
  158.  
  159. <TableRow
  160. android:layout_width="match_parent"
  161. android:layout_height="0dp"
  162. android:layout_weight="1">
  163.  
  164.  
  165. <Button
  166. android:id="@+id/keyboard_seven"
  167. android:layout_width="0dp"
  168. android:layout_height="match_parent"
  169. android:layout_weight="0.33"
  170. android:background="@null"
  171. android:clickable="true"
  172. android:gravity="center"
  173. android:text="7"
  174. android:textColor="#4d4d4d"
  175. android:textSize="@dimen/u_common_text_size_medium_large"
  176.  
  177. />
  178.  
  179. <View
  180. android:layout_width="0.5dp"
  181. android:layout_height="match_parent"
  182. android:background="#e5e5e5" />
  183.  
  184.  
  185. <Button
  186. android:id="@+id/keyboard_eight"
  187. android:layout_width="0dp"
  188. android:layout_height="match_parent"
  189. android:layout_weight="0.33"
  190. android:background="@null"
  191. android:clickable="true"
  192. android:gravity="center"
  193. android:text="8"
  194. android:textColor="#4d4d4d"
  195. android:textSize="@dimen/u_common_text_size_medium_large"
  196.  
  197.  
  198. />
  199.  
  200. <View
  201. android:layout_width="0.5dp"
  202. android:layout_height="match_parent"
  203. android:background="#e5e5e5" />
  204.  
  205.  
  206. <Button
  207. android:id="@+id/keyboard_nine"
  208. android:layout_width="0dp"
  209. android:layout_height="match_parent"
  210. android:layout_weight="0.33"
  211. android:background="@null"
  212. android:clickable="true"
  213. android:gravity="center"
  214. android:text="9"
  215. android:textColor="#4d4d4d"
  216. android:textSize="@dimen/u_common_text_size_medium_large"
  217.  
  218.  
  219. />
  220.  
  221. </TableRow>
  222.  
  223. <View
  224. android:layout_width="match_parent"
  225. android:layout_height="0.5dp"
  226. android:background="#e5e5e5" />
  227.  
  228.  
  229. <TableRow
  230. android:layout_width="match_parent"
  231. android:layout_height="0dp"
  232. android:layout_weight="1">
  233.  
  234.  
  235. <RelativeLayout
  236. android:layout_width="0dp"
  237. android:layout_height="match_parent"
  238. android:layout_weight="0.33"
  239. android:gravity="center">
  240.  
  241. <Button
  242. android:id="@+id/keyboard_dot"
  243. android:layout_width="match_parent"
  244. android:layout_height="wrap_content"
  245. android:background="@null"
  246. android:clickable="true"
  247. android:gravity="center"
  248. android:text="."
  249. android:textColor="#ffffff"
  250. android:textSize="@dimen/u_common_text_size_medium_large"
  251.  
  252. android:visibility="gone" />
  253.  
  254. <ImageView
  255. android:id="@+id/keyboard_left"
  256. android:layout_width="match_parent"
  257. android:layout_height="wrap_content"
  258. android:gravity="center"
  259. android:scaleType="fitCenter"
  260. android:src="@drawable/ic_fingerprint_white"
  261. android:visibility="invisible" />
  262. </RelativeLayout>
  263.  
  264. <View
  265. android:layout_width="0.5dp"
  266. android:layout_height="match_parent"
  267. android:background="#e5e5e5" />
  268.  
  269.  
  270. <Button
  271. android:id="@+id/keyboard_zero"
  272. android:layout_width="0dp"
  273. android:layout_height="match_parent"
  274. android:layout_weight="0.33"
  275. android:background="@null"
  276. android:clickable="true"
  277. android:gravity="center"
  278. android:text="0"
  279. android:textColor="#4d4d4d"
  280. android:textSize="@dimen/u_common_text_size_medium_large"
  281.  
  282. />
  283.  
  284.  
  285. <View
  286. android:layout_width="0.5dp"
  287. android:layout_height="match_parent"
  288. android:background="#e5e5e5" />
  289.  
  290.  
  291. <LinearLayout
  292. android:layout_width="0dp"
  293. android:layout_height="match_parent"
  294. android:layout_weight="0.33"
  295. android:gravity="center">
  296.  
  297. <ImageView
  298. android:id="@+id/keyboard_right"
  299. android:layout_width="match_parent"
  300. android:layout_height="wrap_content"
  301. android:gravity="center"
  302. android:scaleType="fitCenter" />
  303. </LinearLayout>
  304.  
  305. </TableRow>
  306. </TableLayout>
  307.  
  308. public static void replace(FragmentManager fm, Fragment fragment, int container) {
  309. FragmentTransaction ft = fm.beginTransaction();
  310. ft.replace(container, fragment);
  311. ft.commit();
  312. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement