Advertisement
Guest User

Untitled

a guest
Mar 25th, 2013
2,892
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. <!-- CHANGE LAYOUT WEIGHT ACCORDING TO YOUR NEED-->
  2.  
  3. <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  4. xmlns:tools="http://schemas.android.com/tools"
  5. android:id="@+id/LinearLayout"
  6. android:layout_width="fill_parent"
  7. android:layout_height="fill_parent"
  8. android:orientation="horizontal"
  9. android:weightSum="2"
  10. android:background="@color/white">
  11.  
  12. <LinearLayout
  13. android:id="@+id/linearLayout1"
  14. android:layout_width="0dp"
  15. android:layout_height="match_parent"
  16. android:layout_weight="1"
  17. android:weightSum="10"
  18. android:orientation="vertical" >
  19.  
  20. <fragment
  21. android:id="@+id/map"
  22. android:layout_marginTop="5dp"
  23. android:layout_width="wrap_content"
  24. android:layout_height="0dp"
  25. android:layout_weight="6"
  26. class="com.google.android.gms.maps.MapFragment"
  27. />
  28.  
  29. <Button
  30. android:id="@+id/button3"
  31. android:layout_marginLeft="34dp"
  32. android:layout_marginTop="10dp"
  33. android:layout_width="wrap_content"
  34. android:layout_height="0dp"
  35. android:layout_weight="1"
  36. android:onClick="ClickTourismButton"
  37. android:text="@string/Tourism" />
  38.  
  39. <Button
  40. android:id="@+id/button4"
  41. android:layout_width="wrap_content"
  42. android:layout_height="0dp"
  43. android:layout_weight="1"
  44. android:layout_marginLeft="34dp"
  45. android:text="@string/Nearby" />
  46. <Button
  47. android:id="@+id/button2"
  48. android:layout_marginLeft="34dp"
  49. android:layout_width="wrap_content"
  50. android:layout_height="0dp"
  51. android:layout_weight="1"
  52. android:text="@string/Favourites" />
  53. <Button
  54. android:id="@+id/button1"
  55. android:layout_width="wrap_content"
  56. android:layout_height="0dp"
  57. android:layout_weight="1"
  58. android:layout_marginLeft="34dp"
  59. android:text="@string/Map" />
  60.  
  61. </LinearLayout>
  62.  
  63.  
  64. <LinearLayout
  65. android:id="@+id/linearLayout2"
  66. android:layout_width="0dp"
  67. android:layout_height="match_parent"
  68. android:layout_weight="1"
  69. android:weightSum="10"
  70. android:orientation="vertical" >
  71. <TextView
  72.  
  73. android:layout_marginLeft="10dp"
  74. android:layout_marginTop="5dp"
  75. android:layout_width="wrap_content"
  76. android:layout_height="0dp"
  77. android:layout_weight="1"
  78. android:textIsSelectable="true"
  79. android:id="@+id/feedupdate1" />
  80.  
  81. <ListView
  82. android:id="@android:id/list"
  83. android:background="@color/red"
  84. android:layout_marginTop="5dp"
  85. android:layout_width="wrap_content"
  86. android:layout_height="0dp"
  87. android:layout_weight="4"
  88. android:layout_marginLeft="10dp"/>
  89.  
  90. <TextView
  91. android:id="@+id/empty"
  92. android:textIsSelectable="true"
  93. android:layout_width="wrap_content"
  94. android:layout_height="0dp"
  95. android:layout_weight="1"
  96. android:layout_marginLeft="10dp"
  97. android:layout_marginTop="5dp"/>
  98. <TextView
  99. android:id="@+id/feedupdate"
  100. android:layout_marginLeft="6dp"
  101. android:layout_width="wrap_content"
  102. android:layout_height="0dp"
  103. android:layout_weight="1"
  104. android:layout_marginTop="430dp"
  105. android:textIsSelectable="true"/>
  106. <ListView
  107.  
  108. android:id="@+id/list1"
  109. android:background="@color/blue"
  110. android:layout_width="wrap_content"
  111. android:layout_height="0dp"
  112. android:layout_weight="3"
  113. android:layout_marginTop="430dp"
  114. android:layout_marginLeft="6dp" />
  115.  
  116. </LinearLayout>
  117. </LinearLayout>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement