添加demo
@@ -0,0 +1,34 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:aapt="http://schemas.android.com/aapt"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillType="evenOdd"
|
||||
android:pathData="M32,64C32,64 38.39,52.99 44.13,50.95C51.37,48.37 70.14,49.57 70.14,49.57L108.26,87.69L108,109.01L75.97,107.97L32,64Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1">
|
||||
<aapt:attr name="android:fillColor">
|
||||
<gradient
|
||||
android:endX="78.5885"
|
||||
android:endY="90.9159"
|
||||
android:startX="48.7653"
|
||||
android:startY="61.0927"
|
||||
android:type="linear">
|
||||
<item
|
||||
android:color="#44000000"
|
||||
android:offset="0.0" />
|
||||
<item
|
||||
android:color="#00000000"
|
||||
android:offset="1.0" />
|
||||
</gradient>
|
||||
</aapt:attr>
|
||||
</path>
|
||||
<path
|
||||
android:fillColor="#FFFFFF"
|
||||
android:fillType="nonZero"
|
||||
android:pathData="M66.94,46.02L66.94,46.02C72.44,50.07 76,56.61 76,64L32,64C32,56.61 35.56,50.11 40.98,46.06L36.18,41.19C35.45,40.45 35.45,39.3 36.18,38.56C36.91,37.81 38.05,37.81 38.78,38.56L44.25,44.05C47.18,42.57 50.48,41.71 54,41.71C57.48,41.71 60.78,42.57 63.68,44.05L69.11,38.56C69.84,37.81 70.98,37.81 71.71,38.56C72.44,39.3 72.44,40.45 71.71,41.19L66.94,46.02ZM62.94,56.92C64.08,56.92 65,56.01 65,54.88C65,53.76 64.08,52.85 62.94,52.85C61.8,52.85 60.88,53.76 60.88,54.88C60.88,56.01 61.8,56.92 62.94,56.92ZM45.06,56.92C46.2,56.92 47.13,56.01 47.13,54.88C47.13,53.76 46.2,52.85 45.06,52.85C43.92,52.85 43,53.76 43,54.88C43,56.01 43.92,56.92 45.06,56.92Z"
|
||||
android:strokeColor="#00000000"
|
||||
android:strokeWidth="1" />
|
||||
</vector>
|
||||
@@ -2,169 +2,169 @@
|
||||
<vector xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:width="108dp"
|
||||
android:height="108dp"
|
||||
android:viewportWidth="108"
|
||||
android:viewportHeight="108">
|
||||
android:viewportHeight="108"
|
||||
android:viewportWidth="108">
|
||||
<path
|
||||
android:fillColor="@color/colorPrimary"
|
||||
android:fillColor="#26A69A"
|
||||
android:pathData="M0,0h108v108h-108z" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M9,0L9,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,0L19,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,0L29,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,0L39,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,0L49,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,0L59,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,0L69,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,0L79,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M89,0L89,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M99,0L99,108"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,9L108,9"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,19L108,19"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,29L108,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,39L108,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,49L108,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,59L108,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,69L108,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,79L108,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,89L108,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M0,99L108,99"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,29L89,29"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,39L89,39"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,49L89,49"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,59L89,59"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,69L89,69"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M19,79L89,79"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M29,19L29,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M39,19L39,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M49,19L49,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M59,19L59,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M69,19L69,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
<path
|
||||
android:fillColor="#00000000"
|
||||
android:pathData="M79,19L79,89"
|
||||
android:strokeWidth="0.8"
|
||||
android:strokeColor="#33FFFFFF" />
|
||||
android:strokeColor="#33FFFFFF"
|
||||
android:strokeWidth="0.8" />
|
||||
</vector>
|
||||
|
||||
BIN
positions/src/main/res/drawable/location_icon.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
positions/src/main/res/drawable/marker.png
Normal file
|
After Width: | Height: | Size: 5.9 KiB |
BIN
positions/src/main/res/drawable/navi_marker_location.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
16
positions/src/main/res/drawable/radius.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
//这里是Linearlayout布局的背景颜色
|
||||
<solid android:color="#4C90F9" />
|
||||
//这里是设置边框线的粗细和颜色
|
||||
<stroke
|
||||
android:width="0.0dp"
|
||||
android:color="#000000" />
|
||||
<padding
|
||||
android:bottom="1dp"
|
||||
android:left="1dp"
|
||||
android:right="1dp"
|
||||
android:top="1dp" />
|
||||
//角的话,里边有参数可以单独设置
|
||||
<corners android:radius="40dp" />
|
||||
</shape>
|
||||
BIN
positions/src/main/res/drawable/road.jpeg
Normal file
|
After Width: | Height: | Size: 215 KiB |
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".heatoverlay.AggregationOverlayActivity">
|
||||
|
||||
<Switch
|
||||
android:id="@+id/btn_switch_3D"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="切换3D效果" />
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
12
positions/src/main/res/layout/activity_aoi_layer.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
android:background="@android:color/transparent">
|
||||
|
||||
<RelativeLayout
|
||||
android:id="@+id/relativelayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
12
positions/src/main/res/layout/activity_arc.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".circle.ArcActivity">
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".heatoverlay.ArcLineLayerActivity">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Switch
|
||||
android:id="@+id/btn_switch_3D"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="切换3D效果" />
|
||||
</LinearLayout>
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
14
positions/src/main/res/layout/activity_custom_render.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".marker.CustomRenderActivity">
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/map_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
18
positions/src/main/res/layout/activity_g_l_model.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".heatoverlay.GLModelActivity">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_glmode"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
14
positions/src/main/res/layout/activity_ground_overlay.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".marker.GroundOverlayActivity">
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".heatoverlay.HeatMapVectorOverlayActivity">
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
34
positions/src/main/res/layout/activity_indoor.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_margin="30dp"
|
||||
android:background="@drawable/radius">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_vertical"
|
||||
android:layout_marginTop="20dp"
|
||||
android:layout_marginBottom="20dp">
|
||||
|
||||
<cc.winboll.studio.positions.demo.basic.IndoorFloorView
|
||||
android:id="@+id/indoor_floor"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"></cc.winboll.studio.positions.demo.basic.IndoorFloorView>
|
||||
</LinearLayout>
|
||||
</LinearLayout>
|
||||
</RelativeLayout>
|
||||
23
positions/src/main/res/layout/activity_location.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:map="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<fragment
|
||||
android:id="@+id/map"
|
||||
android:name="com.google.android.gms.maps.SupportMapFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/location_text_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textSize="18sp"
|
||||
android:background="#80FFFFFF"
|
||||
android:padding="16dp"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_centerHorizontal="true" />
|
||||
|
||||
</RelativeLayout>
|
||||
23
positions/src/main/res/layout/activity_main_demo.xml
Normal file
@@ -0,0 +1,23 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".MainActivity">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_user"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="60dp"
|
||||
android:gravity="center"
|
||||
android:text="个人信息处理规则:https://privacy.qq.com/document/preview/a10a8634f237464da9a95f4f07e73e40"
|
||||
android:textColor="#0066FF" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/layout_recycle_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
</androidx.recyclerview.widget.RecyclerView>
|
||||
</LinearLayout>
|
||||
12
positions/src/main/res/layout/activity_map_container.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<fragment
|
||||
android:name="com.tencent.tencentmap.mapsdk.maps.SupportMapFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:id="@+id/fragment_map" />
|
||||
|
||||
</FrameLayout>
|
||||
15
positions/src/main/res/layout/activity_map_render_layer.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@drawable/road"
|
||||
tools:context=".basic.MapRenderLayerActivity">
|
||||
|
||||
<TextureView
|
||||
android:id="@+id/textureView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:layout_alignParentBottom="true" />
|
||||
</RelativeLayout>
|
||||
87
positions/src/main/res/layout/activity_map_style.xml
Normal file
@@ -0,0 +1,87 @@
|
||||
<?xml version="1.0" encoding="utf-8"?><!--
|
||||
Copyright (C) 2012 The Android Open Source Project
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
<TextView
|
||||
android:id="@+id/tv_level"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="30dp"
|
||||
android:gravity="center_horizontal"
|
||||
android:textColor="@color/colorAccent"
|
||||
android:textSize="15sp" />
|
||||
<View
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0.5dp"
|
||||
android:background="@android:color/darker_gray" />
|
||||
<Switch
|
||||
android:id="@+id/switch_open"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:textOn="开3D"
|
||||
android:textOff="关2D"
|
||||
android:gravity="center_vertical"
|
||||
android:showText="true"
|
||||
android:checked="true" />
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/rg_map_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:background="@android:color/darker_gray"
|
||||
android:checkedButton="@id/rb_normal_type"
|
||||
android:orientation="horizontal"
|
||||
android:padding="5dp">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_normal_type"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/normal" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_dark_type"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/dark" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rb_sagellite_type"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="@string/satellite" />
|
||||
</RadioGroup>
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
|
||||
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:layout_weight="1" />
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
14
positions/src/main/res/layout/activity_map_view.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".basic.MapViewActivity">
|
||||
<com.tencent.tencentmap.mapsdk.maps.TextureMapView
|
||||
android:id="@+id/mapview"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
14
positions/src/main/res/layout/activity_mapview.xml
Normal file
@@ -0,0 +1,14 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".basic.MapViewActivity">
|
||||
<com.tencent.tencentmap.mapsdk.maps.TextureMapView
|
||||
android:id="@+id/mapview"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
</LinearLayout>
|
||||
9
positions/src/main/res/layout/activity_marker.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".marker.MarkerActivity">
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
12
positions/src/main/res/layout/activity_marker_collisions.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".marker.MarkerCollisions">
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</RelativeLayout>
|
||||
101
positions/src/main/res/layout/activity_offline_map.xml
Normal file
@@ -0,0 +1,101 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".basic.OfflineMapActivity">
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_map_params"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:paddingHorizontal="12dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/map_view"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent">
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_reboot_map"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="重启地图"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_sync"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="同步服务器"
|
||||
android:textSize="12sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_refresh"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:text="刷新列表"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_parmes"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="20dp"
|
||||
android:gravity="center"
|
||||
android:text="刷新列表"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintTop_toBottomOf="@id/ll_map_params" />
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
app:layout_constraintBottom_toTopOf="@id/offline_item_list"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_parmes"
|
||||
app:layout_constraintVertical_weight="1" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_go_work"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="回公司"
|
||||
app:layout_constraintBottom_toBottomOf="@id/map_view"
|
||||
app:layout_constraintEnd_toEndOf="@id/map_view" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_zoom_out"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="zoom out"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintBottom_toTopOf="@id/btn_go_work"
|
||||
app:layout_constraintEnd_toEndOf="@id/map_view" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_zoom_in"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="zoom in"
|
||||
android:textSize="12sp"
|
||||
app:layout_constraintBottom_toTopOf="@id/btn_zoom_out"
|
||||
app:layout_constraintEnd_toEndOf="@id/map_view" />
|
||||
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/offline_item_list"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="0dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/map_view"
|
||||
app:layout_constraintVertical_weight="1" />
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.recyclerview.widget.RecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/layout_recycle_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
12
positions/src/main/res/layout/activity_recycler_list.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".basic.RecyclerListActivity">
|
||||
<androidx.recyclerview.widget.RecyclerView
|
||||
android:id="@+id/rv_container"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
</LinearLayout>
|
||||
@@ -0,0 +1,20 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".heatoverlay.ScatterPlotOverlayActivity">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_style"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
</LinearLayout>
|
||||
45
positions/src/main/res/layout/activity_smooth_move.xml
Normal file
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".smooth.SmoothMoveActivity">
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/map"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/button_set"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:clickable="true"
|
||||
android:text="添加路线" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/satrt"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_toRightOf="@id/button_set"
|
||||
android:clickable="true"
|
||||
android:text="开始" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/stop"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="12dp"
|
||||
android:layout_toRightOf="@id/satrt"
|
||||
android:clickable="true"
|
||||
android:text="停止" />
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/iv"
|
||||
android:layout_width="200dp"
|
||||
android:layout_height="200dp"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_alignParentBottom="true" />
|
||||
</RelativeLayout>
|
||||
503
positions/src/main/res/layout/activity_support_map_fragment.xml
Normal file
@@ -0,0 +1,503 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".basic.SupportMapFragmentActivity">
|
||||
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/linearLayout"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
app:layout_constraintBottom_toBottomOf="parent">
|
||||
<!--地图开关-->
|
||||
<Switch
|
||||
android:id="@+id/switch_map"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:checked="false"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:visibility="gone" />
|
||||
<!--动态路名开关-->
|
||||
<LinearLayout
|
||||
android:id="@+id/switch_linetext"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switch_off"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:checked="false"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:text="动态路名开关"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switch_style"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:checked="false"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:text="切换文字样式"
|
||||
android:visibility="gone" />
|
||||
|
||||
</LinearLayout>
|
||||
<!--poi开关-->
|
||||
<Switch
|
||||
android:id="@+id/switch_poi"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:checked="true"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:visibility="gone" />
|
||||
<!--poi检索/文字补全-->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_poi_search"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/tv_poi_search"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_search_poi"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:hint="输入关键字"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_search_poi"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="搜索"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
<!--地址解析-->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_geocoder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/et_search_poi"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_geocoder"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:hint="输入地址"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_geocoder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="获取坐标"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
<!--逆地址解析-->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_regeocoder"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ll_geocoder"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<EditText
|
||||
android:id="@+id/et_regeocoder"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:hint="输入坐标,经纬度用英文逗号分隔"
|
||||
android:inputType="numberDecimal|textCapCharacters"
|
||||
android:text="39.984154,116.307490"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_regeocoder"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="获取地址"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
<!--行政区域-->
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_district"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ll_geocoder"
|
||||
android:orientation="horizontal">
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_province"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:spinnerMode="dropdown"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_city"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:spinnerMode="dropdown"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Spinner
|
||||
android:id="@+id/sp_district"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1"
|
||||
android:spinnerMode="dropdown"
|
||||
android:visibility="gone" />
|
||||
</LinearLayout>
|
||||
<!--poi补全提示-->
|
||||
<ListView
|
||||
android:id="@+id/lv_suggestions"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/et_search_poi"
|
||||
android:layout_alignLeft="@+id/et_search_poi"
|
||||
android:layout_alignRight="@+id/et_search_poi"
|
||||
android:background="@android:color/white"
|
||||
android:visibility="gone" />
|
||||
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_result"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_below="@+id/ll_poi_search"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!--设置UI组件-->
|
||||
<RadioGroup
|
||||
android:id="@+id/linearHorizonLayout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal">
|
||||
<!--<Switch-->
|
||||
<!--android:id="@+id/switch_zoom"-->
|
||||
<!--android:layout_width="wrap_content"-->
|
||||
<!--android:layout_height="40dp"-->
|
||||
<!--android:checked="true"-->
|
||||
<!--android:paddingLeft="@dimen/padding"-->
|
||||
<!--android:visibility="gone" />-->
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switch_logo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:checked="false"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switch_compass"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:checked="false"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:visibility="gone" />
|
||||
|
||||
<Switch
|
||||
android:id="@+id/switch_scale_view"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:checked="true"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:visibility="gone" />
|
||||
|
||||
<!--<Switch-->
|
||||
<!--android:id="@+id/switch_location"-->
|
||||
<!--android:layout_width="wrap_content"-->
|
||||
<!--android:layout_height="40dp"-->
|
||||
<!--android:checked="true"-->
|
||||
<!--android:paddingLeft="@dimen/padding"-->
|
||||
<!--android:visibility="gone" />-->
|
||||
</RadioGroup>
|
||||
|
||||
<!--设置手势-->
|
||||
<RadioGroup
|
||||
android:id="@+id/lay_checkbox"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/btn_scroll"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="滑动手势" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/btn_zoom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="缩放手势" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/btn_rotate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="旋转手势" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/btn_slope"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="倾斜手势" />
|
||||
</RadioGroup>
|
||||
<!--地图类型切换-->
|
||||
<RadioGroup
|
||||
android:id="@+id/lay_map_type"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_normal"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="普通图" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_satellite"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="卫星图" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_dark"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="暗色图" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_traffic"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="路况" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/style_map"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:text="个性化" />
|
||||
</RadioGroup>
|
||||
<!--地图适应显示-->
|
||||
<RadioGroup
|
||||
android:id="@+id/lay_map_bound"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/btn_fit_width"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="适应宽度" />
|
||||
|
||||
<CheckBox
|
||||
android:id="@+id/btn_fit_height"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="适应高度" />
|
||||
|
||||
|
||||
</RadioGroup>
|
||||
<!--MapFragment-->
|
||||
<fragment
|
||||
android:id="@+id/map_frag"
|
||||
class="com.tencent.tencentmap.mapsdk.maps.SupportMapFragment"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_info"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
android:visibility="gone" />
|
||||
<!--线的类型-->
|
||||
<RadioGroup
|
||||
android:id="@+id/lay_line"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_line_simple"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="简单" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_line_image"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="虚线" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_line_color"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="彩虹" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_line_arrow"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="箭头" />
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
<!--定位点类型-->
|
||||
<RadioGroup
|
||||
android:id="@+id/location_type"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintBottom_toBottomOf="@+id/map_frag">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_follow_no_center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:checked="true"
|
||||
android:text="默认" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_location_rotate"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="固定中心点" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_location_rotate_no_center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="定位点旋转" />
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/btn_map_rotate_no_center"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="地图旋转" />
|
||||
</RadioGroup>
|
||||
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btn_zoomout">
|
||||
|
||||
<ToggleButton
|
||||
android:id="@+id/animate"
|
||||
android:layout_width="40dp"
|
||||
android:layout_height="40dp"
|
||||
android:layout_gravity="center"
|
||||
android:checked="true"
|
||||
android:textOff="关"
|
||||
android:textOn="开" />
|
||||
|
||||
<RelativeLayout
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="80dp"
|
||||
android:gravity="center_horizontal">
|
||||
|
||||
<Button
|
||||
android:id="@+id/scroll_left"
|
||||
android:layout_width="40dip"
|
||||
android:layout_height="40dip"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_centerVertical="true"
|
||||
android:text="←" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/scroll_up"
|
||||
android:layout_width="40dip"
|
||||
android:layout_height="40dip"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_toRightOf="@id/scroll_left"
|
||||
android:text="↑" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/scroll_down"
|
||||
android:layout_width="40dip"
|
||||
android:layout_height="40dip"
|
||||
android:layout_below="@id/scroll_up"
|
||||
android:layout_toRightOf="@id/scroll_left"
|
||||
android:text="↓" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/scroll_right"
|
||||
android:layout_width="40dip"
|
||||
android:layout_height="40dip"
|
||||
android:layout_centerVertical="true"
|
||||
android:layout_toRightOf="@id/scroll_down"
|
||||
android:text="→" />
|
||||
</RelativeLayout>
|
||||
</LinearLayout>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_bottom"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginBottom="8dp"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btn_zoomout" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_zoomout"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginTop="8dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:text="缩小"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@+id/btn_zoomin" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_zoomin"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="40dp"
|
||||
android:layout_marginEnd="8dp"
|
||||
android:text="放大"
|
||||
android:visibility="gone"
|
||||
app:layout_constraintEnd_toEndOf="parent" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
12
positions/src/main/res/layout/activity_tile_overlay.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".polygon.TileOverlayActivity">
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
12
positions/src/main/res/layout/activity_trail_overlay.xml
Normal file
@@ -0,0 +1,12 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
tools:context=".heatoverlay.TrailOverlayActivity">
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/mapView"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent" />
|
||||
</LinearLayout>
|
||||
15
positions/src/main/res/layout/activity_vector_heat_map.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical"
|
||||
tools:context=".heatoverlay.VectorHeatMapActivity">
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView
|
||||
android:id="@+id/map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
</LinearLayout>
|
||||
16
positions/src/main/res/layout/custom_infowindow.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:background="@color/colorPrimary"> <!--背景资源可以自己设置-->
|
||||
|
||||
<!--用于展示自定义信息窗的内容-->
|
||||
<TextView
|
||||
android:id="@+id/tv_title"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_gravity="center_horizontal"
|
||||
android:textColor="#ffffffff"
|
||||
android:textSize="15sp"/>
|
||||
|
||||
</LinearLayout>
|
||||
@@ -6,24 +6,15 @@
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<LinearLayout
|
||||
android:orientation="horizontal"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content">
|
||||
<FrameLayout android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<EditText
|
||||
android:layout_width="0dp"
|
||||
android:ems="10"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_weight="1.0"/>
|
||||
<cc.winboll.studio.positions.views.GridMapView
|
||||
android:id="@+id/map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"/>
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:text="Text"
|
||||
android:id="@+id/page_text"/>
|
||||
|
||||
</LinearLayout>
|
||||
</FrameLayout>
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
|
||||
15
positions/src/main/res/layout/index_adapter.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout
|
||||
xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent"
|
||||
android:layout_height="match_parent">
|
||||
|
||||
<TextView
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="40dp"
|
||||
android:id="@+id/tv_index"
|
||||
android:text="这里是活动名"
|
||||
android:gravity="center_vertical"
|
||||
android:paddingLeft="@dimen/padding"
|
||||
/>
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
52
positions/src/main/res/layout/item_offline.xml
Normal file
@@ -0,0 +1,52 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:paddingHorizontal="12dp"
|
||||
android:paddingVertical="6dp">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/tv_offline_title"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:text="北京市离线地图信息"
|
||||
app:layout_constraintBottom_toTopOf="@id/btn_switch_offline"
|
||||
app:layout_constraintEnd_toEndOf="parent"
|
||||
app:layout_constraintStart_toStartOf="parent"
|
||||
app:layout_constraintTop_toTopOf="parent" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_switch_offline"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="42dp"
|
||||
android:text="关闭"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintHorizontal_weight="1"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
app:layout_constraintRight_toLeftOf="@id/btn_download_offline"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_offline_title" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_download_offline"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="42dp"
|
||||
android:text="下载"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintHorizontal_weight="1"
|
||||
app:layout_constraintLeft_toRightOf="@id/btn_switch_offline"
|
||||
app:layout_constraintRight_toLeftOf="@id/btn_delete_offline"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_offline_title" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_delete_offline"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="42dp"
|
||||
android:text="删除"
|
||||
app:layout_constraintBottom_toBottomOf="parent"
|
||||
app:layout_constraintHorizontal_weight="1"
|
||||
app:layout_constraintLeft_toRightOf="@id/btn_download_offline"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toBottomOf="@id/tv_offline_title" />
|
||||
|
||||
</androidx.constraintlayout.widget.ConstraintLayout>
|
||||
18
positions/src/main/res/layout/screenshot.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<com.tencent.tencentmap.mapsdk.maps.MapView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/map"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:visibility="visible" />
|
||||
|
||||
<ImageView xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:id="@+id/imgview"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="200dp"
|
||||
android:layout_marginTop="5dp" />
|
||||
|
||||
</LinearLayout>
|
||||
40
positions/src/main/res/layout/secondary_layout.xml
Normal file
@@ -0,0 +1,40 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:gravity="left"
|
||||
android:layoutDirection="ltr"
|
||||
android:orientation="horizontal">
|
||||
<TextView
|
||||
android:id="@+id/tv_city"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="10dp"
|
||||
android:layout_alignParentLeft="true"
|
||||
android:layout_marginLeft="10dp"
|
||||
android:textSize="14sp" />
|
||||
|
||||
<Button
|
||||
android:id="@+id/btn_downlaod"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginRight="10dp"
|
||||
android:text="下载" />
|
||||
|
||||
|
||||
<!-- <Button-->
|
||||
<!-- android:id="@+id/btn_cancel"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- android:text="取消下载" />-->
|
||||
|
||||
<!-- <Button-->
|
||||
<!-- android:id="@+id/btn_delete"-->
|
||||
<!-- android:layout_width="wrap_content"-->
|
||||
<!-- android:layout_height="wrap_content"-->
|
||||
<!-- android:layout_weight="1"-->
|
||||
<!-- android:text="删除" />-->
|
||||
|
||||
</RelativeLayout>
|
||||
22
positions/src/main/res/layout/suggestion_list_item.xml
Normal file
@@ -0,0 +1,22 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"
|
||||
android:orientation="vertical">
|
||||
|
||||
<TextView
|
||||
android:id="@+id/label"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginTop="3dp"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="18sp" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/desc"
|
||||
android:layout_width="fill_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:textColor="@android:color/black"
|
||||
android:textSize="12sp" />
|
||||
|
||||
</LinearLayout>
|
||||
9
positions/src/main/res/menu/download.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
<item android:id="@+id/menu_download"
|
||||
app:showAsAction="ifRoom"
|
||||
android:title="下载管理">
|
||||
</item>
|
||||
</menu>
|
||||
66
positions/src/main/res/menu/infowindow.xml
Normal file
@@ -0,0 +1,66 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:tools="http://schemas.android.com/tools"
|
||||
xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item android:id="@+id/menu_type"
|
||||
app:showAsAction="ifRoom"
|
||||
tools:ignore="MenuTitle">
|
||||
<menu>
|
||||
<item android:id="@+id/menu_type_bitmap"
|
||||
android:title="@string/menu_title_infowindow_bitmap"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item android:id="@+id/menu_type_view"
|
||||
android:title="@string/menu_title_infowindow_view"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item android:id="@+id/menu_mult"
|
||||
app:showAsAction="ifRoom"
|
||||
tools:ignore="MenuTitle">
|
||||
<menu>
|
||||
<item android:id="@+id/menu_mult_enable"
|
||||
android:title="@string/menu_title_enable"
|
||||
app:showAsAction="ifRoom"/>
|
||||
<item android:id="@+id/menu_mult_close"
|
||||
android:title="@string/menu_title_close"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add"
|
||||
android:title="@string/menu_title_show"
|
||||
app:showAsAction="ifRoom" >
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_add_infowindow_default"
|
||||
android:title="@string/menu_title_default" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add_infowindow_custom"
|
||||
android:title="@string/menu_title_custom" >
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_add_infowindow_custom_1"
|
||||
android:title="@string/menu_title_style1" />
|
||||
<item
|
||||
android:id="@+id/menu_add_infowindow_custom_2"
|
||||
android:title="@string/menu_title_style2" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_play"
|
||||
android:title="@string/menu_title_animation"
|
||||
app:showAsAction="ifRoom"/>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_delete"
|
||||
android:title="@string/menu_title_hide"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
38
positions/src/main/res/menu/marker_animation.xml
Normal file
@@ -0,0 +1,38 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add_marker"
|
||||
android:title="@string/menu_title_add"
|
||||
app:showAsAction="ifRoom">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_rotate"
|
||||
android:title="@string/menu_title_marker_rotate"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_scale"
|
||||
android:title="@string/menu_title_marker_scale"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_alpha"
|
||||
android:title="@string/menu_title_marker_alpha"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_translate"
|
||||
android:title="@string/menu_title_marker_translate"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_set"
|
||||
android:title="@string/menu_title_marker_set"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_delete_marker"
|
||||
android:title="@string/menu_title_delete"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
30
positions/src/main/res/menu/marker_cluster.xml
Normal file
@@ -0,0 +1,30 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add_marker"
|
||||
android:title="@string/menu_title_add"
|
||||
app:showAsAction="ifRoom">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_general"
|
||||
android:title="@string/menu_title_marker_general"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_massive"
|
||||
android:title="@string/menu_title_marker_massive"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_custom"
|
||||
android:title="@string/menu_title_marker_custom"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_delete_marker"
|
||||
android:title="@string/menu_title_delete"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
16
positions/src/main/res/menu/marker_groundoverlay.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add_groundoverlay"
|
||||
android:title="添加"
|
||||
app:showAsAction="ifRoom">
|
||||
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_remove_groundoverlay"
|
||||
android:title="移除"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
16
positions/src/main/res/menu/markercol.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_open_collisionsmap"
|
||||
android:title="添加"
|
||||
app:showAsAction="ifRoom">
|
||||
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_close_collisionsmap"
|
||||
android:title="移除"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
24
positions/src/main/res/menu/menu_polyline_items.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add"
|
||||
android:title="添加"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="collapseActionView|ifRoom" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add_anim"
|
||||
android:title="动画"
|
||||
android:orderInCategory="100"
|
||||
app:showAsAction="collapseActionView|ifRoom" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_actions"
|
||||
android:title="操作"
|
||||
android:orderInCategory="200"
|
||||
app:showAsAction="collapseActionView|ifRoom">
|
||||
<menu></menu>
|
||||
</item>
|
||||
</menu>
|
||||
43
positions/src/main/res/menu/polyline.xml
Normal file
@@ -0,0 +1,43 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto"
|
||||
xmlns:tools="http://schemas.android.com/tools">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add"
|
||||
android:title="@string/menu_title_add"
|
||||
app:showAsAction="ifRoom">
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_add_line_simple"
|
||||
android:title="@string/menu_title_default"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_line_dash"
|
||||
android:title="@string/menu_title_line_dash"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_line_segment"
|
||||
android:title="@string/menu_title_line_segment"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_line_texture"
|
||||
android:title="@string/menu_title_line_texture"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_add_line_gradient"
|
||||
android:title="@string/menu_title_line_gradient"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_text"
|
||||
app:showAsAction="ifRoom"
|
||||
tools:ignore="MenuTitle" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_delete"
|
||||
android:title="@string/menu_title_delete"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
25
positions/src/main/res/menu/scatterplotmap.xml
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_adddotscatterplot"
|
||||
android:title="添加点散点"
|
||||
app:showAsAction="ifRoom">
|
||||
|
||||
</item>
|
||||
<item
|
||||
android:id="@+id/menu_deldotscatterplot"
|
||||
android:title="移除点散点"
|
||||
app:showAsAction="ifRoom">
|
||||
|
||||
</item>
|
||||
<item
|
||||
android:id="@+id/menu_addbitmapscatterplot"
|
||||
android:title="添加贴图散点"
|
||||
app:showAsAction="ifRoom" />
|
||||
<item
|
||||
android:id="@+id/menu_delbitmapscatterplot"
|
||||
android:title="移除贴图散点"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
24
positions/src/main/res/menu/simple_marker.xml
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add"
|
||||
android:title="@string/menu_title_add"
|
||||
app:showAsAction="ifRoom" >
|
||||
<menu>
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_simple"
|
||||
android:title="@string/menu_title_default" />
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_add_marker_custom"
|
||||
android:title="@string/menu_title_custom" />
|
||||
</menu>
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_delete"
|
||||
android:title="@string/menu_title_delete"
|
||||
app:showAsAction="ifRoom"/>
|
||||
</menu>
|
||||
@@ -1,7 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/item_location"
|
||||
android:title="LocationActivity"/>
|
||||
<item
|
||||
android:id="@+id/item_settings"
|
||||
android:title="SettingsActivity"/>
|
||||
|
||||
16
positions/src/main/res/menu/vectorheatmap.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<menu xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:app="http://schemas.android.com/apk/res-auto">
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_open_vectorheatmap"
|
||||
android:title="打开"
|
||||
app:showAsAction="ifRoom">
|
||||
|
||||
</item>
|
||||
|
||||
<item
|
||||
android:id="@+id/menu_close_vectorheatmap"
|
||||
android:title="关闭"
|
||||
app:showAsAction="ifRoom" />
|
||||
</menu>
|
||||
5
positions/src/main/res/mipmap-anydpi-v26/ic_launcher.xml
Normal file
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<adaptive-icon xmlns:android="http://schemas.android.com/apk/res/android">
|
||||
<background android:drawable="@drawable/ic_launcher_background" />
|
||||
<foreground android:drawable="@drawable/ic_launcher_foreground" />
|
||||
</adaptive-icon>
|
||||
BIN
positions/src/main/res/mipmap-hdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
positions/src/main/res/mipmap-hdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 4.9 KiB |
BIN
positions/src/main/res/mipmap-mdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
positions/src/main/res/mipmap-mdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/petal_blue.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/petal_green.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/petal_orange.png
Normal file
|
After Width: | Height: | Size: 9.5 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/petal_purple.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/petal_red.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
positions/src/main/res/mipmap-xhdpi/petal_yellow.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
positions/src/main/res/mipmap-xxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
positions/src/main/res/mipmap-xxhdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
positions/src/main/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
|
After Width: | Height: | Size: 9.0 KiB |
BIN
positions/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
@@ -4,4 +4,6 @@
|
||||
<color name="colorPrimary">#FF196ABC</color>
|
||||
<color name="colorPrimaryDark">#FF002B57</color>
|
||||
<color name="colorAccent">#FF80BFFF</color>
|
||||
<color name="style">#4ddad589</color>
|
||||
<color name="color_C71585">#C71585</color>
|
||||
</resources>
|
||||
|
||||
234
positions/src/main/res/values/demos.xml
Normal file
@@ -0,0 +1,234 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
|
||||
<string name="demo_type">TYPE</string>
|
||||
|
||||
<string-array name="demo_types">
|
||||
<item>@string/demo_type_basic</item>
|
||||
<item>@string/demo_type_interactive</item>
|
||||
<item>@string/demo_type_transformation</item>
|
||||
<item>@string/demo_type_marker</item>
|
||||
<item>@string/demo_type_draw</item>
|
||||
<item>@string/demo_type_route_plan</item>
|
||||
<item>@string/demo_type_search</item>
|
||||
<item>@string/demo_type_special</item>
|
||||
<item>@string/demo_type_tools</item>
|
||||
<item>@string/demo_type_location</item>
|
||||
</string-array>
|
||||
|
||||
<!--地图基础操作-->
|
||||
<string name="demo_type_basic">基础地图</string>
|
||||
|
||||
<string name="demo_label_show_map">展示地图</string>
|
||||
<string name="demo_description_show_map">.basic.MapViewActivity\n在 Activity 中使用 MapView 展示地图</string>
|
||||
|
||||
<string name="demo_label_map_type">地图类型</string>
|
||||
<string name="demo_description_map_type">.basic.SetMapTypeActivity\n展示地图支持的类型和样式</string>
|
||||
|
||||
<string name="demo_label_show_location">地图内置定位标及定位标点击</string>
|
||||
<string name="demo_description_show_location">.location.LocationLayerActivity\n展示地图内置定位标的使用</string>
|
||||
|
||||
<string name="demo_label_change_location_style">自定义地图内置定位标</string>
|
||||
<string name="demo_description_change_location_style">.location.LocationPointActivity\n展示自定义地图内置定位标的样式</string>
|
||||
|
||||
<string name="demo_label_indoor_map">室内图</string>
|
||||
<string name="demo_description_indoor_map">.basic.IndoorMapActivity\n展示室内图</string>
|
||||
|
||||
<string name="demo_label_oversea">海外图</string>
|
||||
<string name="demo_description_oversea">.basic.OverseaMapActivity\n展示海外图</string>
|
||||
|
||||
<string name="demo_label_traffic">实时路况</string>
|
||||
<string name="demo_description_traffic">.basic.TrafficMapActivity\n展示实时路况</string>
|
||||
|
||||
<string name="demo_label_style">多样式切换</string>
|
||||
<string name="demo_description_style">.basic.MapStyleDemoActivity\n多样式切换</string>
|
||||
|
||||
<string name="demo_label_offline_map">离线地图</string>
|
||||
<string name="demo_description_offline_map">.basic.OfflineMapActivity\n展示离线地图</string>
|
||||
|
||||
<string name="demo_label_show_mapRenderLayer">MapRenderLayer</string>
|
||||
<string name="demo_description_show_mapRenderLayer">.basic.MapRenderLayerActivity\nMapRenderLayer基础使用</string>
|
||||
|
||||
<string name="demo_label_recycler_map">列表展示地图</string>
|
||||
<string name="demo_description_recycler_map">.basic.RecyclerListActivity\n展示列表加载多个地图</string>
|
||||
|
||||
<!--地图交互-->
|
||||
<string name="demo_type_interactive">地图交互</string>
|
||||
|
||||
<string name="demo_label_ui">控件</string>
|
||||
<string name="demo_description_ui">.gesture.UiSettingsActivity\n展示地图内置控件</string>
|
||||
|
||||
<string name="demo_label_gesture">手势</string>
|
||||
<string name="demo_description_gesture">.gesture.GestureSettingsActivity\n地图支持的手势及开关</string>
|
||||
|
||||
<string name="demo_label_modify_zoom">修改缩放级别</string>
|
||||
<string name="demo_description_modify_zoom">.transaction.ZoomMapActivity\n展示修改地图级别的方法</string>
|
||||
|
||||
<string name="demo_label_modify_map_center">修改地图中心点</string>
|
||||
<string name="demo_description_modify_map_center">.camera.MapCameraCenterActivity\n展示修改地图中心点坐标的方法</string>
|
||||
|
||||
<string name="demo_label_map_bound">限制地图展示范围</string>
|
||||
<string name="demo_description_map_bound">.camera.MapBoundActivity\n展示限制地图展示范围的方法</string>
|
||||
|
||||
<string name="demo_label_map_snapshot">地图截屏</string>
|
||||
<string name="demo_description_map_snapshot">.utils.SnapshotActivity\n展示截取当前地图屏幕的方法</string>
|
||||
|
||||
<string name="demo_label_click_poi">POI点击</string>
|
||||
<string name="demo_description_click_poi">.poi.PoiClickActivity\n展示地图 POI 点击事件</string>
|
||||
|
||||
<string name="demo_label_animate_camera">地图视野动画</string>
|
||||
<string name="demo_description_animate_camera">.transaction.AnimateCameraActivity\n展示平滑修改地图视野</string>
|
||||
|
||||
<string name="demo_label_map_camera_anchor">地图锚点</string>
|
||||
<string name="demo_description_map_camera_anchor">.camera.MapAnchorZoomActivity\n锚点修改后,地图的中心点坐标在锚点处</string>
|
||||
|
||||
<!--修改地图视野-->
|
||||
<string name="demo_type_transformation">地图变换</string>
|
||||
|
||||
<string name="demo_label_camera_translation">平移地图</string>
|
||||
<string name="demo_description_camera_translation">.transaction.ScollMapActivity\n平移地图</string>
|
||||
|
||||
<string name="demo_label_camera_rotation">旋转地图</string>
|
||||
<string name="demo_description_camera_rotation">.transaction.RotateMapActivity\n设置地图正北的旋转角度</string>
|
||||
|
||||
<string name="demo_label_camera_include_points">展示指定地图区域</string>
|
||||
<string name="demo_description_camera_include_points">.transaction.ZoomCalulateActivity\n将指定坐标全部展示在地图上</string>
|
||||
|
||||
<string name="demo_label_camera_change_listener">地图变化回调</string>
|
||||
<string name="demo_description_camera_change_listener">.transaction.MoveCameraActivity\n展示地图变化回调的使用</string>
|
||||
|
||||
<string name="demo_label_map_click_listener">地图点击回调</string>
|
||||
<string name="demo_description_map_click_listener">.gesture.MapListenActivity\n展示地图点击回调的使用</string>
|
||||
|
||||
<string name="demo_label_map_long_click_listener">地图长按回调</string>
|
||||
<string name="demo_description_map_long_click_listener">.gesture.MapLongClickActivity\n展示地图长按回调的使用</string>
|
||||
|
||||
<!--标注的使用-->
|
||||
<string name="demo_type_marker">标注</string>
|
||||
|
||||
<string name="demo_label_simple_marker">添加一个标注</string>
|
||||
<string name="demo_description_simple_marker">.marker.SimpleMarkerActivity\n展示添加一个标注</string>
|
||||
<string name="demo_label_collisions_marker">标记和POI碰撞</string>
|
||||
<string name="demo_description_collisions_marker">.marker.MarkerCollisions\n展示点标记与地图POI元素的碰撞</string>
|
||||
|
||||
<string name="demo_label_marker_options">标注配置</string>
|
||||
<string name="demo_description_marker_options">.marker.MarkerOptionsActivity\n通过 MarkerOptions 设置Marker</string>
|
||||
|
||||
<string name="demo_label_marker_click_listener">标注点击回调</string>
|
||||
<string name="demo_description_marker_click_listener">.marker.MarkerClickActivity\n展示标注点击回调的使用</string>
|
||||
|
||||
<string name="demo_label_marker_drag_listener">标注拖动回调</string>
|
||||
<string name="demo_description_marker_drag_listener">.marker.MarkerDragActivity\n展示标注拖动回调的使用</string>
|
||||
|
||||
<string name="demo_label_infowindow_click_listener">信息窗点击回调</string>
|
||||
<string name="demo_description_infowindow_click_listener">.marker.MarkerInfoWindowActivity\n展示信息窗点击回调的使用</string>
|
||||
|
||||
<string name="demo_label_marker_animation">标注动画</string>
|
||||
<string name="demo_description_marker_animation">.marker.MarkerAnimation\n展示标注动画使用</string>
|
||||
|
||||
<string name="demo_label_marker_cluster">标注聚合</string>
|
||||
<string name="demo_description_marker_cluster">.marker.MarkerClusterActivity\n展示标注聚合使用</string>
|
||||
|
||||
<!--图形绘制-->
|
||||
<string name="demo_type_draw">图形绘制</string>
|
||||
|
||||
<string name="demo_label_polyline">折线</string>
|
||||
<string name="demo_description_polyline">.polyline.DrawLineActivity\n展示绘制折线</string>
|
||||
|
||||
<string name="demo_label_mutable_polyline">动态修改折线</string>
|
||||
<string name="demo_description_mutable_polyline">.polyline.MutablePolylineActivity\n展示折线支持可修改的效果</string>
|
||||
|
||||
<string name="demo_label_polygon">多边形</string>
|
||||
<string name="demo_description_polygon">.polyline.DrawPolygonActivity\n展示绘制多边形</string>
|
||||
|
||||
<string name="demo_label_circle">圆形</string>
|
||||
<string name="demo_description_circle">.polyline.DrawCircleActivity\n展示绘制圆形</string>
|
||||
<string name="demo_label_arc">圆弧</string>
|
||||
<string name="demo_description_arc">.polyline.ArcActivity\n展示绘制圆弧</string>
|
||||
|
||||
<string name="demo_label_heat_map">热力图</string>
|
||||
<string name="demo_description_heat_map">.heatoverlay.DrawHeatOverlayActivity\n展示热力图</string>
|
||||
<string name="demo_label_tileOverlay_map">自定义瓦片图</string>
|
||||
<string name="demo_description_tileOverlay_map">.polygon.TileOverlayActivity\n展示瓦片图</string>
|
||||
|
||||
<string name="demo_label_opengl">OpenGL</string>
|
||||
<string name="demo_description_opengl">.marker.CustomRenderActivity\n展示3D图形绘制</string>
|
||||
|
||||
<string name="demo_label_glModel">GLModel</string>
|
||||
<string name="demo_description_glModel">.marker.CustomRenderActivity\n展示gltf三维模型</string>
|
||||
|
||||
<string name="demo_label_ground_overlay">GroundOverlay</string>
|
||||
<string name="demo_description_overlay">.marker.GroundOverlayActivity\n展示GroundOverlay</string>
|
||||
|
||||
<string name="demo_label_vectorheatmap">2D蜂窝热力图</string>
|
||||
<string name="demo_description_vectorheatmap">.heatoverlay.VectorHeatMapActivity\n展示蜂窝热力图</string>
|
||||
|
||||
<string name="demo_label_aoi">AOI面</string>
|
||||
<string name="demo_description_aoi">.marker.AoiLayerActivity\n展示AOI面</string>
|
||||
|
||||
<string name="demo_label_smooth_move">小车移动</string>
|
||||
<string name="demo_description_smooth_move">.smooth.SmoothMoveActivity\n展示小车移动</string>
|
||||
|
||||
<string name="demo_label_3d_heat_map">矢量热力图</string>
|
||||
<string name="demo_description_3dheatmap">.heatoverlay.HeatMapVectorOverlayDesignActivity\n展示矢量热力图</string>
|
||||
|
||||
<string name="demo_label_3d_aggregationOverlay_map">3D蜂窝</string>
|
||||
<string name="demo_description_AggregationOverlay">.heatoverlay.AggregationOverlayActivity\n展示3D蜂窝热力</string>
|
||||
|
||||
<string name="demo_label_3d_scatterplotoverlay_map">散点</string>
|
||||
<string name="demo_description_ScatterPlotOverlay">.heatoverlay.ScatterPlotOverlayActivity\n展示3D散点</string>
|
||||
|
||||
<string name="demo_label_3d_railoverltay_map">轨迹图层</string>
|
||||
<string name="demo_description_TrailOverlay">.heatoverlay.TrailOverlayActivity\n展示轨迹图层</string>
|
||||
|
||||
<string name="demo_label_arcline_map">弧线图</string>
|
||||
<string name="demo_description_arcline">.heatoverlay.ArcLineLayerActivity\n展示弧线图</string>
|
||||
|
||||
<!--路线规划-->
|
||||
<string name="demo_type_route_plan">路线规划</string>
|
||||
|
||||
<string name="demo_label_walking_plan">步行路线规划</string>
|
||||
<string name="demo_description_walking_plan">.search.WalkingRouteActivity\n展示步行路线规划</string>
|
||||
|
||||
<string name="demo_label_driving_plan">驾车路线规划</string>
|
||||
<string name="demo_description_driving_plan">.search.DrivingRouteActivity\n展示驾车路线规划</string>
|
||||
|
||||
<string name="demo_label_transit_plan">公交路线规划</string>
|
||||
<string name="demo_description_transit_plan">.search.TransitRouteActivity\n展示公交路线规划</string>
|
||||
<string name="demo_label_truking_plan">货车路线规划</string>
|
||||
<string name="demo_description_truking_plan">.search.TruckingRouteActivity\n展示货车路线规划</string>
|
||||
|
||||
|
||||
<!--地图数据检索-->
|
||||
<string name="demo_type_search">检索</string>
|
||||
|
||||
<string name="demo_label_basic_search">基础检索</string>
|
||||
<string name="demo_description_basic_search">.search.SearchBasicActivity\n展示基础检索功能</string>
|
||||
|
||||
<string name="demo_label_geocoder">地址、逆地址解析</string>
|
||||
<string name="demo_description_geocoder">.search.GeoCoderActivity\n展示地址、逆地址解析功能</string>
|
||||
|
||||
<string name="demo_label_district">行政区划</string>
|
||||
<string name="demo_description_district">.search.DistrictActivity\n展示行政区划检索功能</string>
|
||||
|
||||
<!--特色功能-->
|
||||
<string name="demo_type_special">特色</string>
|
||||
|
||||
<string name="demo_label_line_text">线形文字标注</string>
|
||||
<string name="demo_description_line_text">.polyline.LineTextActivity\n展示线形文字标注功能</string>
|
||||
|
||||
<!--工具类-->
|
||||
<string name="demo_type_tools">工具</string>
|
||||
|
||||
<string name="demo_label_bitmap">位图</string>
|
||||
<string name="demo_description_bitmap">.utils.BitMapActivity\n展示位图标注</string>
|
||||
|
||||
<string name="demo_label_projection">坐标转换</string>
|
||||
<string name="demo_description_projection">.utils.CoordinateActivity\n展示屏幕和地理坐标的相互转换</string>
|
||||
|
||||
<!-- 定位-->
|
||||
<string name="demo_type_location">定位</string>
|
||||
<string name="demo_label_location_listener">定位标点击事件</string>
|
||||
<string name="demo_description_location_listener">.location.LocationSourceDemoActivity\n展示内置定位图标点击事件</string>
|
||||
|
||||
</resources>
|
||||
4
positions/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="padding">16dp</dimen>
|
||||
</resources>
|
||||
@@ -3,4 +3,42 @@
|
||||
|
||||
<string name="app_name">Positions</string>
|
||||
|
||||
<string name="title_main_basic">基础地图</string>
|
||||
<string name="title_main_interactive">地图交互</string>
|
||||
<string name="title_main_transformation">地图变换</string>
|
||||
<string name="title_main_marker">标注</string>
|
||||
<string name="title_main_draw">图形绘制</string>
|
||||
<string name="title_main_route_plan">路线规划</string>
|
||||
<string name="title_main_search">检索</string>
|
||||
<string name="title_main_special">特色</string>
|
||||
<string name="title_main_tools">工具</string>
|
||||
<string name="normal">普通地图</string>
|
||||
<string name="dark">暗色模式</string>
|
||||
<string name="satellite">卫星图</string>
|
||||
<string name="menu_title_add">添加</string>
|
||||
<string name="menu_title_default">默认</string>
|
||||
<string name="menu_title_custom">自定义</string>
|
||||
<string name="menu_title_delete">移除</string>
|
||||
<string name="menu_title_animation">播放动画</string>
|
||||
<string name="menu_title_hide">隐藏</string>
|
||||
<string name="menu_title_show">显示</string>
|
||||
<string name="menu_title_style1">样式1</string>
|
||||
<string name="menu_title_style2">样式2</string>
|
||||
<string name="menu_title_infowindow_bitmap">Bitmap</string>
|
||||
<string name="menu_title_infowindow_view">View</string>
|
||||
<string name="menu_title_enable">开启</string>
|
||||
<string name="menu_title_close">关闭</string>
|
||||
<string name="menu_title_line_text">路名</string>
|
||||
<string name="menu_title_line_dash">虚线</string>
|
||||
<string name="menu_title_line_segment">分段线</string>
|
||||
<string name="menu_title_line_texture">纹理线</string>
|
||||
<string name="menu_title_line_gradient">渐变色</string>
|
||||
<string name="menu_title_marker_rotate">旋转</string>
|
||||
<string name="menu_title_marker_scale">缩放</string>
|
||||
<string name="menu_title_marker_alpha">渐变</string>
|
||||
<string name="menu_title_marker_translate">平移</string>
|
||||
<string name="menu_title_marker_set">组合动画</string>
|
||||
<string name="menu_title_marker_general">普通点聚合</string>
|
||||
<string name="menu_title_marker_massive">海量点聚合</string>
|
||||
<string name="menu_title_marker_custom">自定义点聚合</string>
|
||||
</resources>
|
||||
|
||||