map_view_amap_layout.xml 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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. android:layout_width="fill_parent"
  5. android:layout_height="fill_parent"
  6. android:background="@color/g_child_page_bg_color">
  7. <android.support.design.widget.AppBarLayout
  8. android:id="@+id/app_bar_layout"
  9. android:layout_width="match_parent"
  10. android:layout_height="wrap_content"
  11. android:theme="@style/AppTheme.AppBarOverlay"
  12. app:elevation="0dp">
  13. <android.support.v7.widget.Toolbar
  14. android:id="@+id/toolbar"
  15. android:layout_width="match_parent"
  16. android:layout_height="?attr/actionBarSize"
  17. android:background="?attr/colorPrimary"
  18. app:titleTextAppearance="@style/Toolbar.TitleText">
  19. <include layout="@layout/nim_action_bar_right_clickable_tv" />
  20. </android.support.v7.widget.Toolbar>
  21. </android.support.design.widget.AppBarLayout>
  22. <com.amap.api.maps2d.MapView
  23. android:id="@+id/autonavi_mapView"
  24. android:layout_width="match_parent"
  25. android:layout_height="match_parent"
  26. android:layout_below="@id/app_bar_layout" />
  27. <ImageView
  28. android:id="@+id/location_pin"
  29. android:layout_width="wrap_content"
  30. android:layout_height="wrap_content"
  31. android:layout_centerInParent="true"
  32. android:src="@drawable/pin" />
  33. <LinearLayout
  34. android:id="@+id/location_info"
  35. android:layout_width="wrap_content"
  36. android:layout_height="wrap_content"
  37. android:layout_above="@+id/location_pin"
  38. android:layout_centerHorizontal="true"
  39. android:background="@drawable/marker_info_bg"
  40. android:orientation="vertical"
  41. android:paddingLeft="8dp"
  42. android:paddingRight="8dp"
  43. android:visibility="gone">
  44. <TextView
  45. android:id="@+id/marker_address"
  46. android:layout_width="wrap_content"
  47. android:layout_height="wrap_content"
  48. android:text="@string/location_map"
  49. android:textColor="@color/white"
  50. android:textSize="12sp" />
  51. </LinearLayout>
  52. <Button
  53. android:id="@+id/my_location"
  54. android:layout_width="@dimen/friend_map_btn_height"
  55. android:layout_height="@dimen/friend_map_btn_height"
  56. android:layout_above="@+id/assist_my_location"
  57. android:layout_marginLeft="12dip"
  58. android:background="@drawable/btn_location_selector" />
  59. <View
  60. android:id="@+id/assist_my_location"
  61. android:layout_width="match_parent"
  62. android:layout_height="24dip"
  63. android:layout_alignParentBottom="true" />
  64. </RelativeLayout>