创建工程
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ripple xmlns:android="http://schemas.android.com/apk/res/android" android:color="#64a0e6">
|
||||
<item>
|
||||
<selector >
|
||||
<item android:state_pressed="true"
|
||||
android:drawable="@drawable/shape_button_press"/>
|
||||
<item android:state_checked="true"
|
||||
android:drawable="@drawable/shape_button_press"/>
|
||||
<item android:state_selected="true"
|
||||
android:drawable="@drawable/shape_button_press"/>
|
||||
<item android:state_enabled="false"
|
||||
android:drawable="@drawable/shape_button_press"/>
|
||||
<item android:drawable="@drawable/shape_button_default"/>
|
||||
</selector>
|
||||
</item>
|
||||
</ripple>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@mipmap/icon_zoom_in_p"></item>
|
||||
<item android:drawable="@mipmap/icon_zoom_in"></item>
|
||||
|
||||
</selector>
|
||||
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<selector xmlns:android="http://schemas.android.com/apk/res/android" >
|
||||
<item android:state_pressed="true" android:drawable="@mipmap/icon_zoom_out_p"></item>
|
||||
<item android:drawable="@mipmap/icon_zoom_out"></item>
|
||||
|
||||
</selector>
|
||||
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="5dp"></corners>
|
||||
<padding
|
||||
android:bottom="@dimen/nimap_defalut_padding"
|
||||
android:left="@dimen/nimap_defalut_padding"
|
||||
android:right="@dimen/nimap_defalut_padding"
|
||||
android:top="@dimen/nimap_defalut_padding"></padding>
|
||||
<stroke android:width="0.2dp"
|
||||
android:color="#cfcfcf"></stroke>
|
||||
<solid android:color="#77cfcfcf"></solid>
|
||||
</shape>
|
||||
13
collect-library/src/main/res/drawable/shape_button_press.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<shape xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
android:shape="rectangle">
|
||||
<corners android:radius="5dp"></corners>
|
||||
<padding
|
||||
android:bottom="@dimen/nimap_defalut_padding"
|
||||
android:left="@dimen/nimap_defalut_padding"
|
||||
android:right="@dimen/nimap_defalut_padding"
|
||||
android:top="@dimen/nimap_defalut_padding"></padding>
|
||||
<stroke android:width="0.2dp"
|
||||
android:color="#bcbcbc"></stroke>
|
||||
<solid android:color="#77bcbcbc"></solid>
|
||||
</shape>
|
||||
81
collect-library/src/main/res/layout/base_map_layout.xml
Normal file
@@ -0,0 +1,81 @@
|
||||
<?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">
|
||||
<org.oscim.android.MapView
|
||||
android:id="@+id/base_map_view"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="match_parent"></org.oscim.android.MapView>
|
||||
<ImageView
|
||||
android:id="@+id/navinfo_map_compass"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/nimap_defalut_padding"
|
||||
android:layout_alignParentTop="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:layout_marginTop="50dp"
|
||||
android:src="@mipmap/compass"></ImageView>
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/navinfo_map_logo"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:src="@mipmap/logo"
|
||||
android:padding="@dimen/nimap_defalut_padding"></ImageView>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/navinfo_map_zoom_layer"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:padding="@dimen/nimap_defalut_padding"
|
||||
android:layout_alignParentBottom="true"
|
||||
android:layout_alignParentRight="true"
|
||||
android:orientation="vertical">
|
||||
<ImageView
|
||||
android:id="@+id/navinfo_map_zoom_in"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/icon_map_zoom_in"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="@drawable/bg_nimap_default_button"></ImageView>
|
||||
<Space
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="@dimen/nimap_defalut_padding"></Space>
|
||||
<ImageView
|
||||
android:id="@+id/navinfo_map_zoom_out"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@drawable/icon_map_zoom_out"
|
||||
android:clickable="true"
|
||||
android:focusable="true"
|
||||
android:background="@drawable/bg_nimap_default_button"></ImageView>
|
||||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:layout_centerInParent="true"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:visibility="gone"
|
||||
android:gravity="center"
|
||||
android:orientation="vertical">
|
||||
|
||||
<ImageView
|
||||
android:id="@+id/main_tracking_cross"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:src="@mipmap/tracking_cross"
|
||||
android:visibility="gone" />
|
||||
|
||||
<TextView
|
||||
android:id="@+id/main_tracking_cross_text"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginLeft="-10dp"
|
||||
android:layout_marginTop="-20dp"
|
||||
android:textColor="@color/draw_line_red_color"
|
||||
android:textSize="16sp" />
|
||||
|
||||
</LinearLayout>
|
||||
|
||||
</RelativeLayout>
|
||||
BIN
collect-library/src/main/res/mipmap-hdpi/compass.png
Normal file
|
After Width: | Height: | Size: 6.0 KiB |
BIN
collect-library/src/main/res/mipmap-hdpi/icon_direction.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
collect-library/src/main/res/mipmap-hdpi/icon_direction_p.png
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
collect-library/src/main/res/mipmap-hdpi/icon_location_arrow.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
collect-library/src/main/res/mipmap-hdpi/icon_zoom_in.png
Normal file
|
After Width: | Height: | Size: 232 B |
BIN
collect-library/src/main/res/mipmap-hdpi/icon_zoom_in_p.png
Normal file
|
After Width: | Height: | Size: 274 B |
BIN
collect-library/src/main/res/mipmap-hdpi/icon_zoom_out.png
Normal file
|
After Width: | Height: | Size: 246 B |
BIN
collect-library/src/main/res/mipmap-hdpi/icon_zoom_out_p.png
Normal file
|
After Width: | Height: | Size: 289 B |
BIN
collect-library/src/main/res/mipmap-hdpi/logo.png
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
collect-library/src/main/res/mipmap-hdpi/marker.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/icon_path_maker.png
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/map_icon_blue1.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/map_icon_blue2.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/map_icon_cluster.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/map_icon_line_add.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/map_icon_line_pr.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
|
After Width: | Height: | Size: 2.5 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/map_icon_point_pr.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.6 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
BIN
collect-library/src/main/res/mipmap-xxhdpi/tracking_cross.png
Normal file
|
After Width: | Height: | Size: 934 B |
19
collect-library/src/main/res/values/colors.xml
Normal file
@@ -0,0 +1,19 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<color name="transp">#00000000</color>
|
||||
<color name="purple_200">#FFBB86FC</color>
|
||||
<color name="purple_500">#FF6200EE</color>
|
||||
<color name="purple_700">#FF3700B3</color>
|
||||
<color name="teal_200">#FF03DAC5</color>
|
||||
<color name="teal_700">#FF018786</color>
|
||||
<color name="black">#FF000000</color>
|
||||
<color name="white">#FFFFFFFF</color>
|
||||
<color name="transparent">#00FFFFFF</color>
|
||||
<color name="draw_line_blue1_color" comment="线数据样式">#028FFF</color>
|
||||
<color name="draw_line_blue2_color" comment="线数据样式">#4E55AF</color>
|
||||
<color name="draw_line_red_color" comment="线数据样式">#FFF6565D</color>
|
||||
<color name="draw_line_color" comment="地图绘制线颜色">#4E55AF</color>
|
||||
<color name="default_blue" comment="应用主要色调">#1890ff</color>
|
||||
<color name="default_red" comment="应用主要色调">#F03736</color>
|
||||
|
||||
</resources>
|
||||
4
collect-library/src/main/res/values/dimens.xml
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<resources>
|
||||
<dimen name="nimap_defalut_padding">12dp</dimen>
|
||||
</resources>
|
||||
3
collect-library/src/main/res/values/strings.xml
Normal file
@@ -0,0 +1,3 @@
|
||||
<resources>
|
||||
<string name="app_name">NavinfoMap</string>
|
||||
</resources>
|
||||
16
collect-library/src/main/res/values/themes.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<resources xmlns:tools="http://schemas.android.com/tools">
|
||||
<!-- Base application theme. -->
|
||||
<style name="Theme.NavinfoMap" parent="Theme.MaterialComponents.DayNight.DarkActionBar">
|
||||
<!-- Primary brand color. -->
|
||||
<item name="colorPrimary">@color/purple_500</item>
|
||||
<item name="colorPrimaryVariant">@color/purple_700</item>
|
||||
<item name="colorOnPrimary">@color/white</item>
|
||||
<!-- Secondary brand color. -->
|
||||
<item name="colorSecondary">@color/teal_200</item>
|
||||
<item name="colorSecondaryVariant">@color/teal_700</item>
|
||||
<item name="colorOnSecondary">@color/black</item>
|
||||
<!-- Status bar color. -->
|
||||
<item name="android:statusBarColor" tools:targetApi="l">?attr/colorPrimaryVariant</item>
|
||||
<!-- Customize your theme here. -->
|
||||
</style>
|
||||
</resources>
|
||||