Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.75 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="match_parent"
  4. android:layout_height="match_parent"
  5. android:layout_weight="100"
  6. android:gravity="top"
  7. android:orientation="vertical"
  8. android:weightSum="100">
  9.  
  10. <android.support.v7.widget.Toolbar
  11. android:id="@+id/deviceInfoToolBar"
  12. android:layout_width="match_parent"
  13. android:layout_height="?attr/actionBarSize"
  14. android:background="@color/white"
  15. android:elevation="4dp">
  16.  
  17. <LinearLayout
  18. android:layout_width="match_parent"
  19. android:layout_height="match_parent"
  20. android:orientation="horizontal"
  21. android:weightSum="100">
  22.  
  23. <ImageView
  24. android:id="@+id/toolBarBackIcon"
  25. android:layout_width="0dp"
  26. android:layout_height="match_parent"
  27. android:clickable="true"
  28. android:padding="15dp"
  29. android:src="@drawable/arrow"
  30. android:layout_weight="20"/>
  31.  
  32. <TextView
  33. android:id="@+id/deviceInfoToolbarTitle"
  34. android:layout_width="0dp"
  35. android:layout_height="wrap_content"
  36. android:layout_gravity="center"
  37. android:layout_weight="60"
  38. android:text="@string/AddDevice.toolbarText"
  39. android:textAlignment="center"
  40. android:textColor="@color/darkGreen"
  41. android:textSize="@dimen/text_size_normal" />
  42.  
  43. <LinearLayout
  44. android:layout_width="0dp"
  45. android:layout_height="match_parent"
  46. android:layout_weight="20">
  47.  
  48. <TextView
  49. android:layout_width="0dp"
  50. android:layout_height="match_parent"
  51. android:layout_weight="20" />
  52.  
  53.  
  54. </LinearLayout>
  55. </LinearLayout>
  56.  
  57. <!--
  58. <RelativeLayout
  59. android:id="@+id/toolbar"
  60. android:layout_width="match_parent"
  61. android:layout_height="match_parent"
  62. android:padding="0dp">
  63.  
  64.  
  65. <ImageView
  66. android:id="@+id/toolBarBackIcon"
  67. android:layout_width="60dp"
  68. android:layout_height="match_parent"
  69. android:layout_alignParentLeft="true"
  70. android:layout_alignParentStart="true"
  71. android:clickable="true"
  72. android:padding="17dp"
  73. android:src="@drawable/arrow" />
  74.  
  75.  
  76. <TextView
  77. android:id="@+id/deviceInfoToolbarTitle"
  78. android:layout_width="match_parent"
  79. android:layout_height="match_parent"
  80. android:layout_centerInParent="true"
  81. android:layout_gravity="center"
  82. android:gravity="center_vertical"
  83. android:text="@string/AddDevice.toolbarText"
  84. android:textAlignment="center"
  85. android:textColor="@color/darkGreen"
  86. android:textSize="@dimen/text_size_normal" />
  87.  
  88. </RelativeLayout>
  89. -->
  90. </android.support.v7.widget.Toolbar>
  91.  
  92. <LinearLayout
  93. android:id="@+id/topContainer"
  94. android:layout_width="match_parent"
  95. android:layout_height="0dp"
  96. android:layout_weight="50"
  97. android:orientation="vertical"
  98. android:paddingTop="@dimen/gap_large">
  99.  
  100. <LinearLayout
  101. android:layout_width="match_parent"
  102. android:layout_height="wrap_content"
  103. android:layout_gravity="top"
  104. android:layout_marginEnd="@dimen/gap_large"
  105. android:layout_marginLeft="@dimen/gap_large"
  106. android:layout_marginRight="@dimen/gap_large"
  107. android:layout_marginStart="@dimen/gap_large"
  108. android:layout_marginTop="@dimen/margin_normal"
  109. android:background="@drawable/border_normal"
  110. android:orientation="vertical">
  111.  
  112. <FrameLayout
  113. android:layout_width="match_parent"
  114. android:layout_height="wrap_content"
  115. android:descendantFocusability="beforeDescendants"
  116. android:focusableInTouchMode="true"
  117. android:padding="@dimen/padding_small">
  118.  
  119. <EditText
  120. android:id="@+id/euiNumberEditText"
  121. android:layout_width="match_parent"
  122. android:layout_height="wrap_content"
  123. android:layout_gravity="center"
  124. android:background="@android:color/transparent"
  125. android:hint="@string/AddDevice.euiNumberEditText"
  126. android:nextFocusDown="@+id/nameEditText"
  127. android:paddingEnd="@dimen/padding_mini"
  128. android:paddingLeft="@dimen/padding_normal"
  129. android:paddingRight="@dimen/padding_mini"
  130. android:paddingStart="@dimen/padding_normal"
  131. android:singleLine="true"
  132. android:textColorHint="@color/borderColor"
  133. android:textCursorDrawable="@null"
  134. android:textSize="@dimen/AddDeviceActivity.textFieldTextSize" />
  135.  
  136. </FrameLayout>
  137.  
  138. <LinearLayout
  139. android:layout_width="match_parent"
  140. android:layout_height="@dimen/line_height"
  141. android:background="@color/borderColor" />
  142.  
  143. <FrameLayout
  144. android:layout_width="match_parent"
  145. android:layout_height="wrap_content"
  146. android:padding="@dimen/padding_small">
  147.  
  148. <EditText
  149. android:id="@+id/nameEditText"
  150. android:layout_width="match_parent"
  151. android:layout_height="wrap_content"
  152. android:layout_gravity="center"
  153. android:background="@android:color/transparent"
  154. android:hint="@string/AddDevice.deviceNameEditText"
  155. android:paddingEnd="@dimen/padding_mini"
  156. android:paddingLeft="@dimen/padding_normal"
  157. android:paddingRight="@dimen/padding_mini"
  158. android:paddingStart="@dimen/padding_normal"
  159. android:singleLine="true"
  160. android:textColorHint="@color/borderColor"
  161. android:textCursorDrawable="@null"
  162. android:textSize="@dimen/AddDeviceActivity.textFieldTextSize" />
  163.  
  164. </FrameLayout>
  165.  
  166. </LinearLayout>
  167.  
  168.  
  169. <LinearLayout
  170. android:layout_width="match_parent"
  171. android:layout_height="match_parent"
  172. android:layout_marginEnd="@dimen/gap_medium"
  173. android:layout_marginLeft="@dimen/gap_medium"
  174. android:layout_marginRight="@dimen/gap_medium"
  175. android:layout_marginStart="@dimen/gap_medium"
  176. android:layout_marginTop="@dimen/margin_normal"
  177. android:gravity="top"
  178. android:weightSum="100">
  179.  
  180. <ImageView
  181. android:id="@+id/addDeviceImage1"
  182. android:layout_width="wrap_content"
  183. android:layout_height="wrap_content"
  184. android:layout_weight="25"
  185. android:clickable="true"
  186. android:src="@drawable/pet" />
  187.  
  188. <ImageView
  189. android:id="@+id/addDeviceImage2"
  190. android:layout_width="wrap_content"
  191. android:layout_height="wrap_content"
  192. android:layout_weight="25"
  193. android:clickable="true"
  194. android:paddingLeft="@dimen/AddDeviceActivity.imagePadding"
  195. android:paddingRight="@dimen/AddDeviceActivity.imagePadding"
  196. android:src="@drawable/bicycle" />
  197.  
  198. <ImageView
  199. android:id="@+id/addDeviceImage3"
  200. android:layout_width="wrap_content"
  201. android:layout_height="wrap_content"
  202. android:layout_weight="25"
  203. android:clickable="true"
  204. android:paddingLeft="@dimen/AddDeviceActivity.imagePadding"
  205. android:paddingRight="@dimen/AddDeviceActivity.imagePadding"
  206. android:src="@drawable/vehicle" />
  207.  
  208. <ImageView
  209. android:id="@+id/addDeviceImage4"
  210. android:layout_width="wrap_content"
  211. android:layout_height="wrap_content"
  212. android:layout_weight="25"
  213. android:clickable="true"
  214. android:src="@drawable/children" />
  215. </LinearLayout>
  216.  
  217.  
  218. </LinearLayout>
  219.  
  220.  
  221. <LinearLayout
  222. android:layout_width="match_parent"
  223. android:layout_height="0dp"
  224. android:layout_marginEnd="@dimen/gap_large"
  225. android:layout_marginLeft="@dimen/gap_large"
  226. android:layout_marginRight="@dimen/gap_large"
  227. android:layout_marginStart="@dimen/gap_large"
  228. android:layout_marginTop="@dimen/gap_large"
  229. android:layout_weight="10">
  230.  
  231. <TextView
  232. android:id="@+id/addButton"
  233. android:layout_width="match_parent"
  234. android:layout_height="match_parent"
  235. android:layout_marginBottom="@dimen/gap_small"
  236. android:layout_marginTop="@dimen/gap_small"
  237. android:background="@drawable/greenbuttonbg"
  238. android:gravity="center"
  239. android:text="@string/AddDevice.addDeviceButton"
  240. android:textColor="@android:color/white"
  241. android:textSize="@dimen/text_size_normal" />
  242.  
  243. </LinearLayout>
  244.  
  245.  
  246. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement