Ola_Mundo

content_addtreepg1.xml

Jun 26th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.98 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
  3. android:layout_width="fill_parent"
  4. android:layout_height="wrap_content"
  5. android:orientation="vertical"
  6. android:padding="10dp"
  7. android:fillViewport="false">
  8. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  9. xmlns:tools="http://schemas.android.com/tools"
  10. android:layout_width="match_parent"
  11. android:layout_height="match_parent"
  12. android:paddingLeft="@dimen/activity_horizontal_margin"
  13. android:paddingRight="@dimen/activity_horizontal_margin"
  14. android:paddingTop="@dimen/activity_vertical_margin"
  15. android:paddingBottom="@dimen/activity_vertical_margin"
  16. tools:context=".AddTreeActivity"
  17. android:orientation="vertical"
  18. android:weightSum="1">
  19.  
  20. <RelativeLayout
  21. android:layout_height="wrap_content"
  22. android:layout_width="fill_parent">
  23. <TextView
  24. android:text="@string/spnS1"
  25. android:id="@+id/lblTxt1"
  26. android:layout_height="wrap_content"
  27. android:layout_width="wrap_content"
  28. android:textSize="20dp"
  29. android:layout_alignParentTop="true"
  30. android:layout_alignParentStart="true" />
  31.  
  32. <Spinner
  33. android:id="@+id/nome_spinner"
  34. android:layout_height="wrap_content"
  35. android:layout_width="fill_parent"
  36. android:entries="@array/spnCS1"
  37. android:layout_marginLeft="10dp"
  38. android:layout_alignParentTop="true"
  39. android:layout_toEndOf="@+id/lblTxt1" />
  40.  
  41. </RelativeLayout>
  42.  
  43. <RelativeLayout
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:layout_weight="0.1">
  47. <TextView
  48. android:text="CAP1:"
  49. android:id="@+id/lblTxtCap1"
  50. android:layout_width="wrap_content"
  51. android:layout_height="wrap_content"
  52. android:textSize="20dp"
  53. android:layout_alignParentTop="true"
  54. android:layout_alignParentStart="true" />
  55.  
  56. <EditText
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:inputType="numberDecimal"
  60. android:ems="10"
  61. android:id="@+id/floatCap1"
  62. android:layout_below="@+id/lblTxtCap1"
  63. android:layout_centerHorizontal="true" />
  64. </RelativeLayout>
  65. <RelativeLayout
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:layout_weight="0.1">
  69. <TextView
  70. android:text="CAP2:"
  71. android:layout_width="wrap_content"
  72. android:layout_height="wrap_content"
  73. android:id="@+id/lblTxtCap2"
  74. android:textSize="20dp"
  75.  
  76.  
  77. />
  78. <EditText
  79. android:layout_width="wrap_content"
  80. android:layout_height="wrap_content"
  81. android:inputType="numberDecimal"
  82. android:ems="10"
  83. android:id="@+id/floatCap2"
  84. android:layout_below="@id/lblTxtCap2"
  85. android:layout_centerHorizontal="true"
  86. />
  87.  
  88. </RelativeLayout>
  89. <RelativeLayout
  90. android:layout_width="wrap_content"
  91. android:layout_height="wrap_content"
  92. android:layout_weight="0.1">
  93. <TextView
  94. android:layout_width="wrap_content"
  95. android:layout_height="wrap_content"
  96. android:id="@+id/lblTxtCap3"
  97. android:text="CAP3:"
  98. android:textSize="20dp"
  99. />
  100. <EditText
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content"
  103. android:inputType="numberDecimal"
  104. android:ems="10"
  105. android:id="@+id/floatCap3"
  106. android:layout_below="@id/lblTxtCap3"
  107. android:layout_centerHorizontal="true"/>
  108. </RelativeLayout>
  109.  
  110. <RelativeLayout
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:layout_weight="0.1">
  114. <TextView
  115. android:layout_width="wrap_content"
  116. android:layout_height="wrap_content"
  117. android:id="@+id/lblTxtCaBase"
  118. android:text="CaBase:"
  119. android:textSize="20dp"
  120. />
  121. <EditText
  122. android:layout_width="wrap_content"
  123. android:layout_height="wrap_content"
  124. android:inputType="numberDecimal"
  125. android:ems="10"
  126. android:id="@+id/floatCaBase"
  127. android:layout_below="@id/lblTxtCaBase"
  128. android:layout_centerHorizontal="true"/>
  129.  
  130. </RelativeLayout>
  131. <RelativeLayout
  132. android:layout_width="wrap_content"
  133. android:layout_height="wrap_content"
  134. android:layout_weight="0.1">
  135. <TextView
  136. android:layout_width="wrap_content"
  137. android:layout_height="wrap_content"
  138. android:id="@+id/lblCopDiam1"
  139. android:text="Copa Diâmetro 1:"
  140. android:textSize="20dp"
  141.  
  142. />
  143. <EditText
  144. android:layout_width="wrap_content"
  145. android:layout_height="wrap_content"
  146. android:inputType="numberDecimal"
  147. android:ems="10"
  148. android:id="@+id/floatCopDiam1"
  149. android:layout_below="@id/lblCopDiam1"
  150. android:layout_centerHorizontal="true"/>
  151.  
  152. </RelativeLayout>
  153. <RelativeLayout
  154. android:layout_width="wrap_content"
  155. android:layout_height="wrap_content"
  156. android:layout_weight="0.1">
  157. <TextView
  158. android:layout_width="wrap_content"
  159. android:layout_height="wrap_content"
  160. android:textSize="20dp"
  161. android:text="Copa Diâmetro 2:"
  162. android:id="@+id/lblCopDiam2"
  163. />
  164. <EditText
  165. android:layout_width="wrap_content"
  166. android:layout_height="wrap_content"
  167. android:inputType="numberDecimal"
  168. android:ems="10"
  169. android:id="@+id/floatCopDiam2"
  170. android:layout_below="@id/lblCopDiam2"
  171. android:layout_centerHorizontal="true"/>
  172.  
  173. </RelativeLayout>
  174. <RelativeLayout
  175. android:layout_width="wrap_content"
  176. android:layout_height="wrap_content">
  177. <TextView
  178. android:layout_width="wrap_content"
  179. android:layout_height="wrap_content"
  180. android:id="@+id/lblAlt"
  181. android:text="Altura:"
  182. android:textSize="20dp"
  183. />
  184.  
  185. <EditText
  186. android:layout_width="wrap_content"
  187. android:layout_height="wrap_content"
  188. android:inputType="numberDecimal"
  189. android:ems="10"
  190. android:id="@+id/floatAlt"
  191. android:layout_below="@id/lblAlt"
  192.  
  193. android:layout_centerHorizontal="true" />
  194. </RelativeLayout>
  195. <RelativeLayout
  196. android:layout_width="wrap_content"
  197. android:layout_height="wrap_content">
  198. <TextView
  199. android:layout_width="wrap_content"
  200. android:layout_height="wrap_content"
  201. android:text="Altura 1ª Ram:"
  202. android:textSize="20dp"
  203. android:id="@+id/lblAlta" />
  204. <EditText
  205. android:layout_width="wrap_content"
  206. android:layout_height="wrap_content"
  207. android:inputType="numberDecimal"
  208. android:id="@+id/floatAlta"
  209. android:ems="10"
  210. android:layout_below="@id/lblAlta"
  211. android:layout_centerHorizontal="true"
  212. />
  213.  
  214. </RelativeLayout>
  215. <RelativeLayout
  216. android:layout_width="wrap_content"
  217. android:layout_height="wrap_content">
  218. <EditText
  219. android:layout_width="wrap_content"
  220. android:layout_height="wrap_content"
  221. android:id="@+id/space"
  222. android:ems="10"
  223. android:layout_alignParentBottom="true"
  224. android:layout_alignParentEnd="true" />
  225. </RelativeLayout>
  226.  
  227. </LinearLayout>
  228. </ScrollView>
Add Comment
Please, Sign In to add comment