Advertisement
Guest User

aaaa

a guest
Jan 25th, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.96 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:tools="http://schemas.android.com/tools"
  5. android:layout_width="match_parent"
  6. android:layout_height="match_parent"
  7. android:paddingBottom="@dimen/activity_vertical_margin"
  8. android:paddingLeft="@dimen/activity_horizontal_margin"
  9. android:paddingRight="@dimen/activity_horizontal_margin"
  10. android:paddingTop="@dimen/activity_vertical_margin"
  11. tools:context="twig.testsaioapiapplication.MainActivity">
  12.  
  13. <RelativeLayout
  14. android:id="@+id/activationLayout"
  15. android:layout_width="match_parent"
  16. android:layout_height="wrap_content"
  17. android:layout_alignParentLeft="true"
  18. android:layout_alignParentStart="true"
  19. android:layout_alignParentTop="true"
  20. android:background="@android:color/holo_orange_light">
  21.  
  22. <Button
  23. android:id="@+id/button5"
  24. style="@android:style/Widget.Button.Inset"
  25. android:layout_width="wrap_content"
  26. android:layout_height="wrap_content"
  27. android:layout_alignParentLeft="true"
  28. android:layout_alignParentStart="true"
  29. android:layout_alignParentTop="true"
  30. android:onClick="activate"
  31. android:text="Activate" />
  32.  
  33. <android.support.v7.widget.AppCompatTextView
  34. android:id="@+id/appCompatTextView"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_alignParentTop="true"
  38. android:layout_toEndOf="@+id/button5"
  39. android:layout_toRightOf="@+id/button5"
  40. android:text="device info:"
  41. android:textStyle="bold" />
  42.  
  43. <android.support.v7.widget.AppCompatTextView
  44. android:id="@+id/deviceInfoTV"
  45. android:layout_width="wrap_content"
  46. android:layout_height="wrap_content"
  47. android:layout_below="@+id/appCompatTextView"
  48. android:layout_toEndOf="@+id/button5"
  49. android:layout_toRightOf="@+id/button5"
  50. android:text="nic" />
  51.  
  52. <android.support.v7.widget.AppCompatTextView
  53. android:id="@+id/status"
  54. android:layout_width="wrap_content"
  55. android:layout_height="wrap_content"
  56. android:layout_below="@+id/deviceInfoTV"
  57. android:layout_toEndOf="@+id/button5"
  58. android:layout_toRightOf="@+id/button5"
  59. android:text="status: "
  60. android:textStyle="bold" />
  61.  
  62. <TextView
  63. android:id="@+id/activateStatusTv"
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:layout_alignBaseline="@+id/status"
  67. android:layout_alignBottom="@+id/status"
  68. android:layout_toEndOf="@+id/status"
  69. android:layout_toRightOf="@+id/status"
  70. android:text="unknown" />
  71. </RelativeLayout>
  72.  
  73. <LinearLayout
  74. android:id="@+id/printerLayout"
  75. android:layout_width="match_parent"
  76. android:layout_height="wrap_content"
  77. android:layout_below="@id/activationLayout"
  78. android:background="@android:color/holo_green_light"
  79. android:orientation="vertical">
  80.  
  81. <LinearLayout
  82. android:layout_width="match_parent"
  83. android:layout_height="wrap_content"
  84. android:orientation="horizontal">
  85.  
  86. <Button
  87. android:id="@+id/button"
  88. style="@android:style/Widget.Button.Inset"
  89. android:layout_width="wrap_content"
  90. android:layout_height="wrap_content"
  91. android:onClick="refreshPrinters"
  92. android:text="Refresh" />
  93.  
  94. <TextView
  95. style="@android:style/TextAppearance.DeviceDefault.Medium"
  96. android:layout_width="wrap_content"
  97. android:layout_height="wrap_content"
  98. android:text="printers:" />
  99. </LinearLayout>
  100.  
  101. <TextView
  102. android:id="@+id/printersInfoTV"
  103. android:layout_width="match_parent"
  104. android:layout_height="wrap_content"
  105. android:text="not implemented yet" />
  106.  
  107.  
  108. </LinearLayout>
  109.  
  110. <TextView
  111. android:id="@+id/textView"
  112. android:layout_width="wrap_content"
  113. android:layout_height="wrap_content"
  114. android:layout_alignParentLeft="true"
  115. android:layout_alignParentStart="true"
  116. android:layout_below="@+id/printerLayout"
  117. android:text="Pre vytlacenie kopie dokladu zadaj BillId nizsie" />
  118.  
  119. <EditText
  120. android:id="@+id/billId"
  121. android:layout_width="wrap_content"
  122. android:layout_height="wrap_content"
  123. android:layout_alignParentLeft="true"
  124. android:layout_alignParentStart="true"
  125. android:layout_below="@+id/textView"
  126. android:layout_toLeftOf="@+id/button7"
  127. android:layout_toStartOf="@+id/button7"
  128. android:hint="Bill Id" />
  129.  
  130.  
  131. <Button
  132. android:id="@+id/buttonCopy"
  133. style="@android:style/Widget.Button.Inset"
  134. android:layout_width="wrap_content"
  135. android:layout_height="wrap_content"
  136. android:layout_alignParentLeft="true"
  137. android:layout_alignParentStart="true"
  138. android:layout_below="@+id/billId"
  139. android:onClick="printCopyOfReceipt"
  140. android:text="Print Copy of Receipt" />
  141.  
  142.  
  143. <Button
  144. android:id="@+id/button7"
  145. style="@android:style/Widget.Button.Inset"
  146. android:layout_width="wrap_content"
  147. android:layout_height="wrap_content"
  148. android:layout_alignTop="@+id/buttonCopy"
  149. android:layout_toEndOf="@+id/buttonCopy"
  150. android:layout_toRightOf="@id/buttonCopy"
  151. android:onClick="testBart"
  152. android:text="Print Random Docs" />
  153.  
  154. <RelativeLayout
  155. android:id="@+id/loginLayout"
  156. android:layout_width="match_parent"
  157. android:layout_height="wrap_content"
  158. android:layout_alignParentLeft="true"
  159. android:layout_alignParentStart="true"
  160. android:layout_below="@+id/buttonCopy"
  161. android:background="#f3ee94">
  162.  
  163. <TextView
  164. android:id="@+id/textView2"
  165. android:layout_width="wrap_content"
  166. android:layout_height="wrap_content"
  167. android:layout_alignParentLeft="true"
  168. android:layout_alignParentStart="true"
  169. android:layout_alignParentTop="true"
  170. android:text="Test login: is logged->" />
  171.  
  172. <TextView
  173. android:id="@+id/textIsLogin"
  174. android:layout_width="wrap_content"
  175. android:layout_height="wrap_content"
  176. android:layout_alignParentTop="true"
  177. android:layout_marginLeft="15dp"
  178. android:layout_marginStart="15dp"
  179. android:layout_toEndOf="@+id/textView2"
  180. android:layout_toRightOf="@id/textView2" />
  181.  
  182. <LinearLayout
  183. android:layout_width="match_parent"
  184. android:layout_height="wrap_content"
  185. android:layout_alignParentLeft="true"
  186. android:layout_alignParentStart="true"
  187. android:layout_below="@+id/textView2"
  188. android:orientation="horizontal">
  189.  
  190. <Button
  191. android:id="@+id/buttonLogin"
  192. style="@android:style/Widget.Button.Inset"
  193. android:layout_width="wrap_content"
  194. android:layout_height="wrap_content"
  195. android:text="Login" />
  196.  
  197. <CheckBox
  198. android:id="@+id/checkPermanent"
  199. android:layout_width="wrap_content"
  200. android:layout_height="wrap_content"
  201. android:layout_margin="10dp"
  202. android:checked="false"
  203. android:text="perma" />
  204.  
  205. <Button
  206. android:id="@+id/buttonLogout"
  207. style="@android:style/Widget.Button.Inset"
  208. android:layout_width="wrap_content"
  209. android:layout_height="wrap_content"
  210. android:text="Logout" />
  211. </LinearLayout>
  212. </RelativeLayout>
  213.  
  214. <RelativeLayout
  215. android:layout_width="match_parent"
  216. android:layout_height="wrap_content"
  217. android:layout_below="@+id/loginLayout">
  218.  
  219. <Button
  220. android:id="@+id/buttonCheckUpdate"
  221. style="@android:style/Widget.Button.Inset"
  222. android:layout_width="wrap_content"
  223. android:layout_height="wrap_content"
  224. android:onClick="checkUpdate"
  225. android:text="check update" />
  226.  
  227. <Button
  228. android:id="@+id/buttonUpdate"
  229. style="@android:style/Widget.Button.Inset"
  230. android:layout_width="wrap_content"
  231. android:layout_height="wrap_content"
  232. android:layout_alignParentTop="true"
  233. android:layout_toEndOf="@+id/buttonCheckUpdate"
  234. android:layout_toRightOf="@+id/buttonCheckUpdate"
  235. android:onClick="checkUpdate"
  236. android:text="update" />
  237.  
  238. <Button
  239. android:id="@+id/buttonUpdateAll"
  240. style="@android:style/Widget.Button.Inset"
  241. android:layout_width="wrap_content"
  242. android:layout_height="wrap_content"
  243. android:layout_alignParentTop="true"
  244. android:layout_toEndOf="@+id/buttonUpdate"
  245. android:layout_toRightOf="@+id/buttonUpdate"
  246. android:onClick="checkUpdate"
  247. android:text="update All" />
  248.  
  249. </RelativeLayout>
  250.  
  251.  
  252. <Button
  253. android:id="@+id/button3"
  254. android:layout_width="wrap_content"
  255. android:layout_height="wrap_content"
  256. android:layout_alignParentBottom="true"
  257. android:layout_centerHorizontal="true"
  258. android:onClick="clickSaioApi"
  259. android:text="Start SaioApi activity" />
  260.  
  261.  
  262. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement