Ola_Mundo

content_addtreepg2.xml

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