精简源码,位置列表框UI优化

This commit is contained in:
ZhanGSKen 2025-04-05 12:32:46 +08:00
parent 4b9f34b946
commit 4cafbae077
35 changed files with 6 additions and 1262 deletions

View File

@ -1,8 +1,8 @@
#Created by .winboll/winboll_app_build.gradle
#Sat Apr 05 02:50:45 GMT 2025
#Sat Apr 05 04:29:59 GMT 2025
stageCount=0
libraryProject=
baseVersion=1.0
publishVersion=1.0.0
buildCount=438
buildCount=443
baseBetaVersion=1.0.1

View File

@ -1,20 +0,0 @@
<?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>

View File

@ -1,12 +0,0 @@
<?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>

View File

@ -1,12 +0,0 @@
<?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>

View File

@ -1,26 +0,0 @@
<?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>

View File

@ -1,14 +0,0 @@
<?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>

View File

@ -1,23 +0,0 @@
<?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>

View File

@ -1,18 +0,0 @@
<?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>

View File

@ -1,14 +0,0 @@
<?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>

View File

@ -1,14 +0,0 @@
<?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>

View File

@ -1,34 +0,0 @@
<?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">
<com.tencent.map.vector.demo.basic.IndoorFloorView
android:id="@+id/indoor_floor"
android:layout_width="wrap_content"
android:layout_height="wrap_content"></com.tencent.map.vector.demo.basic.IndoorFloorView>
</LinearLayout>
</LinearLayout>
</RelativeLayout>

View File

@ -1,12 +0,0 @@
<?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>

View File

@ -1,15 +0,0 @@
<?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>

View File

@ -1,87 +0,0 @@
<?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>

View File

@ -1,14 +0,0 @@
<?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>

View File

@ -1,9 +0,0 @@
<?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>

View File

@ -1,12 +0,0 @@
<?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>

View File

@ -1,101 +0,0 @@
<?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>

View File

@ -1,5 +0,0 @@
<?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" />

View File

@ -1,12 +0,0 @@
<?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>

View File

@ -1,20 +0,0 @@
<?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>

View File

@ -1,45 +0,0 @@
<?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>

View File

@ -1,503 +0,0 @@
<?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>

View File

@ -1,12 +0,0 @@
<?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>

View File

@ -1,12 +0,0 @@
<?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>

View File

@ -1,15 +0,0 @@
<?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>

View File

@ -1,16 +0,0 @@
<?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>

View File

@ -1,15 +0,0 @@
<?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>

View File

@ -1,52 +0,0 @@
<?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>

View File

@ -1,18 +0,0 @@
<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>

View File

@ -1,40 +0,0 @@
<?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>

View File

@ -1,22 +0,0 @@
<?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>

View File

@ -1,32 +0,0 @@
<?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"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/shape_gradient"
android:gravity="center"
android:orientation="vertical"
android:padding="10dp">
<LinearLayout
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<ImageView
android:layout_width="40dp"
android:layout_height="40dp"
android:src="@drawable/ic_launcher"/>
<TextView
android:id="@android:id/message"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_margin="10dp"
android:textColor="#FF000000"
android:textSize="16sp"/>
</LinearLayout>
</LinearLayout>

View File

@ -77,9 +77,10 @@
android:id="@+id/recycler_view"
android:layout_width="match_parent"
android:layout_height="0dp"
android:layout_weight="1.0"
android:background="@drawable/recycler_view_border"
android:layout_margin="5dp"
android:layout_weight="1.0"/>
android:padding="2dp"
android:layout_margin="2dp"/>
</LinearLayout>

View File

@ -4,8 +4,7 @@
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal"
android:background="@drawable/recycler_view_border">
android:orientation="horizontal">
<LinearLayout
android:id="@+id/content_layout"