Advertisement
Ola_Mundo

content_addtreepg2.xml

Jun 20th, 2016
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.32 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. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  20. android:layout_width="match_parent" android:layout_height="match_parent">
  21. <TextView
  22. android:layout_width="wrap_content"
  23. android:layout_height="wrap_content"
  24. android:text="Cidade: "
  25. android:textSize="25dp"
  26. android:id="@+id/lblTxt2"
  27. />
  28. <Spinner
  29. android:id="@+id/cidade_spinner"
  30. android:layout_height="wrap_content"
  31. android:layout_width="fill_parent"
  32. android:entries="@array/spnCS2"
  33. android:layout_marginLeft="10dp"
  34. android:layout_alignParentTop="true"
  35. android:layout_toEndOf="@+id/lblTxt2" />
  36.  
  37.  
  38.  
  39. </RelativeLayout>
  40. <RelativeLayout
  41. android:layout_width="wrap_content"
  42. android:layout_height="wrap_content">
  43. <TextView
  44. android:layout_width="wrap_content"
  45. android:layout_height="wrap_content"
  46. android:text="Bairro"
  47. android:id="@+id/lblTxt3"
  48. android:textSize="25dp"
  49. />
  50. <Spinner
  51. android:id="@+id/bairro_spinner"
  52. android:layout_height="wrap_content"
  53. android:layout_width="fill_parent"
  54. android:entries="@array/spnCS3"
  55. android:layout_marginLeft="10dp"
  56. android:layout_alignParentTop="true"
  57. android:layout_toEndOf="@+id/lblTxt3" />
  58. </RelativeLayout>
  59.  
  60. <RelativeLayout
  61. android:layout_width="wrap_content"
  62. android:layout_height="wrap_content">
  63. <TextView
  64. android:layout_width="wrap_content"
  65. android:layout_height="wrap_content"
  66. android:text="Rua"
  67. android:id="@+id/lblTxt4"
  68. android:textSize="25dp"/>
  69. <Spinner
  70. android:id="@+id/rua_spinner"
  71. android:layout_height="wrap_content"
  72. android:layout_width="fill_parent"
  73. android:entries="@array/spnCS4"
  74. android:layout_marginLeft="10dp"
  75. android:layout_alignParentTop="true"
  76. android:layout_toEndOf="@+id/lblTxt4" />
  77.  
  78.  
  79.  
  80. </RelativeLayout>
  81. <RelativeLayout
  82. android:layout_width="wrap_content"
  83. android:layout_height="wrap_content">
  84. <TextView
  85. android:layout_width="wrap_content"
  86. android:layout_height="wrap_content"
  87. android:text="NΓΊmero:"
  88. android:textSize="25dp"
  89. android:id="@+id/lblTxt5"
  90. />
  91. <EditText
  92. android:layout_width="wrap_content"
  93. android:layout_height="wrap_content"
  94. android:inputType="number"
  95. android:id="@+id/intNum"
  96. android:ems="10"
  97. android:layout_below="@id/lblTxt5"/>
  98.  
  99. </RelativeLayout>
  100. <RelativeLayout
  101. android:layout_width="wrap_content"
  102. android:layout_height="wrap_content">
  103. <TextView
  104. android:layout_width="wrap_content"
  105. android:layout_height="wrap_content"
  106. android:text="Latitude: "
  107. android:textSize="25dp"
  108. android:id="@+id/lblTxt6"
  109. />
  110. <EditText
  111. android:layout_width="wrap_content"
  112. android:layout_height="wrap_content"
  113. android:inputType="numberDecimal"
  114. android:id="@+id/floatLat"
  115. android:ems="10"
  116. android:layout_below="@id/lblTxt6"
  117. />
  118. </RelativeLayout>
  119. <RelativeLayout
  120. android:layout_width="wrap_content"
  121. android:layout_height="wrap_content">
  122.  
  123. <TextView
  124. android:layout_width="wrap_content"
  125. android:layout_height="wrap_content"
  126. android:text="Longitude: "
  127. android:textSize="25dp"
  128. android:id="@+id/lblTxt7"/>
  129. <EditText
  130. android:layout_width="wrap_content"
  131. android:layout_height="wrap_content"
  132. android:inputType="numberDecimal"
  133. android:id="@+id/floatLong"
  134. android:ems="10"
  135. android:layout_below="@id/lblTxt7"/>
  136.  
  137. </RelativeLayout>
  138.  
  139.  
  140. </LinearLayout>
  141. </ScrollView>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement