Advertisement
Ola_Mundo

content_main.xml

Jun 30th, 2016
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
  3. xmlns:app="http://schemas.android.com/apk/res-auto"
  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. app:layout_behavior="@string/appbar_scrolling_view_behavior"
  12. tools:context="none.treego.MainActivity"
  13. tools:showIn="@layout/app_bar_main">
  14.  
  15. <Button
  16. android:layout_width="wrap_content"
  17. android:layout_height="wrap_content"
  18. android:text="@string/btnTeste1"
  19. android:id="@+id/btnShowState"
  20. android:layout_alignParentTop="true"
  21. android:layout_alignParentStart="true" />
  22.  
  23. <Button
  24. android:layout_width="wrap_content"
  25. android:layout_height="wrap_content"
  26. android:text="@string/btnTeste2"
  27. android:id="@+id/btnShowCity"
  28. android:layout_alignTop="@+id/btnShowState"
  29. android:layout_toEndOf="@+id/btnShowState" />
  30.  
  31. <Button
  32. android:layout_width="wrap_content"
  33. android:layout_height="wrap_content"
  34. android:text="@string/btnTeste3"
  35. android:id="@+id/btnShowNeighborhood"
  36. android:layout_alignTop="@+id/btnShowCity"
  37. android:layout_toEndOf="@+id/btnShowCity" />
  38.  
  39. <Button
  40. android:layout_width="wrap_content"
  41. android:layout_height="wrap_content"
  42. android:text="@string/btnTeste4"
  43. android:id="@+id/btnShowStreet"
  44. android:layout_alignTop="@+id/btnShowNeighborhood"
  45. android:layout_toEndOf="@+id/btnShowNeighborhood" />
  46.  
  47. <TextView
  48. android:layout_width="wrap_content"
  49. android:layout_height="wrap_content"
  50. android:textAppearance="?android:attr/textAppearanceLarge"
  51. android:text="Estado"
  52. android:id="@+id/lblState"
  53. android:layout_below="@+id/btnShowState"
  54. android:layout_alignParentStart="true" />
  55.  
  56. <TextView
  57. android:layout_width="wrap_content"
  58. android:layout_height="wrap_content"
  59. android:textAppearance="?android:attr/textAppearanceLarge"
  60. android:text="Cidade"
  61. android:id="@+id/lblCity"
  62. android:layout_below="@+id/lblState"
  63. android:layout_alignStart="@+id/lblState" />
  64.  
  65. <TextView
  66. android:layout_width="wrap_content"
  67. android:layout_height="wrap_content"
  68. android:textAppearance="?android:attr/textAppearanceLarge"
  69. android:text="Bairro"
  70. android:id="@+id/lblNeighborhood"
  71. android:layout_below="@+id/lblCity"
  72. android:layout_alignStart="@+id/lblCity" />
  73.  
  74. <TextView
  75. android:layout_width="wrap_content"
  76. android:layout_height="wrap_content"
  77. android:textAppearance="?android:attr/textAppearanceLarge"
  78. android:text="Rua"
  79. android:id="@+id/lblStreet"
  80. android:layout_below="@+id/lblNeighborhood"
  81. android:layout_alignParentStart="true" />
  82. </RelativeLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement