创建工程

This commit is contained in:
squallzhjch
2023-03-21 17:06:56 +08:00
parent f76c8b050c
commit 1b94b361ca
387 changed files with 46661 additions and 0 deletions

View File

@@ -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>

View File

@@ -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>

View File

@@ -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>

View 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="#cfcfcf"></stroke>
<solid android:color="#77cfcfcf"></solid>
</shape>

View 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>

View 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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 232 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 289 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 934 B

View 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>

View File

@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<dimen name="nimap_defalut_padding">12dp</dimen>
</resources>

View File

@@ -0,0 +1,3 @@
<resources>
<string name="app_name">NavinfoMap</string>
</resources>

View 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>