activity_main.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <LinearLayout 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:orientation="vertical">
  8. <View
  9. android:layout_width="match_parent"
  10. android:layout_height="@dimen/height_split"
  11. android:background="@color/gray_light_s"/>
  12. <LinearLayout
  13. android:layout_width="match_parent"
  14. android:layout_height="wrap_content"
  15. android:orientation="vertical"
  16. android:background="@color/white">
  17. <LinearLayout
  18. android:id="@+id/ll_1"
  19. android:layout_width="match_parent"
  20. android:layout_height="wrap_content"
  21. android:orientation="horizontal"
  22. android:gravity="center_vertical"
  23. android:paddingTop="@dimen/margin_s"
  24. android:paddingBottom="@dimen/margin_s"
  25. android:paddingLeft="@dimen/margin_default"
  26. android:paddingRight="@dimen/margin_default"
  27. android:background="@drawable/ripple_item">
  28. <ImageView
  29. android:layout_width="@dimen/width_location"
  30. android:layout_height="@dimen/height_location"
  31. android:scaleType="fitXY"
  32. android:src="@mipmap/location_1"/>
  33. <TextView
  34. android:id="@+id/tv_1"
  35. android:layout_width="match_parent"
  36. android:layout_height="wrap_content"
  37. android:layout_marginLeft="@dimen/margin_s"
  38. android:text="未选择"
  39. android:textSize="@dimen/text_size_p"
  40. android:textColor="@color/black_text"/>
  41. </LinearLayout>
  42. <View
  43. android:layout_width="match_parent"
  44. android:layout_height="@dimen/height_split"
  45. android:background="@color/gray_light_s"/>
  46. <LinearLayout
  47. android:id="@+id/ll_2"
  48. android:layout_width="match_parent"
  49. android:layout_height="wrap_content"
  50. android:orientation="horizontal"
  51. android:gravity="center_vertical"
  52. android:paddingTop="@dimen/margin_s"
  53. android:paddingBottom="@dimen/margin_s"
  54. android:paddingLeft="@dimen/margin_default"
  55. android:paddingRight="@dimen/margin_default"
  56. android:background="@drawable/ripple_item">
  57. <ImageView
  58. android:layout_width="@dimen/width_location"
  59. android:layout_height="@dimen/height_location"
  60. android:scaleType="fitXY"
  61. android:src="@mipmap/location_2"/>
  62. <TextView
  63. android:id="@+id/tv_2"
  64. android:layout_width="match_parent"
  65. android:layout_height="wrap_content"
  66. android:layout_marginLeft="@dimen/margin_s"
  67. android:text="未选择"
  68. android:textSize="@dimen/text_size_p"
  69. android:textColor="@color/black_text"/>
  70. </LinearLayout>
  71. <View
  72. android:layout_width="match_parent"
  73. android:layout_height="@dimen/height_split"
  74. android:background="@color/gray_light_s"/>
  75. <LinearLayout
  76. android:id="@+id/ll_3"
  77. android:layout_width="match_parent"
  78. android:layout_height="wrap_content"
  79. android:orientation="horizontal"
  80. android:gravity="center_vertical"
  81. android:paddingTop="@dimen/margin_s"
  82. android:paddingBottom="@dimen/margin_s"
  83. android:paddingLeft="@dimen/margin_default"
  84. android:paddingRight="@dimen/margin_default"
  85. android:background="@drawable/ripple_item">
  86. <ImageView
  87. android:layout_width="@dimen/width_location"
  88. android:layout_height="@dimen/height_location"
  89. android:scaleType="fitXY"
  90. android:src="@mipmap/location_3"/>
  91. <TextView
  92. android:id="@+id/tv_3"
  93. android:layout_width="match_parent"
  94. android:layout_height="wrap_content"
  95. android:layout_marginLeft="@dimen/margin_s"
  96. android:text="未选择"
  97. android:textSize="@dimen/text_size_p"
  98. android:textColor="@color/black_text"/>
  99. </LinearLayout>
  100. </LinearLayout>
  101. <View
  102. android:layout_width="match_parent"
  103. android:layout_height="@dimen/height_split"
  104. android:background="@color/gray_light_s"/>
  105. <com.baidu.mapapi.map.MapView
  106. android:id="@+id/mv_main"
  107. android:layout_width="match_parent"
  108. android:layout_height="match_parent"
  109. android:clickable="true" />
  110. </LinearLayout>