Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
p x
MapMultiEngine
Commits
fc1586ea
Commit
fc1586ea
authored
Sep 01, 2025
by
p x
Browse files
加入自实现的导航类
parent
42135beb
Changes
51
Hide whitespace changes
Inline
Side-by-side
maplibrary/src/main/res/drawable-xhdpi/turn_left_font.png
0 → 100644
View file @
fc1586ea
4.45 KB
maplibrary/src/main/res/drawable-xhdpi/turn_left_ver.png
0 → 100644
View file @
fc1586ea
3.35 KB
maplibrary/src/main/res/drawable-xhdpi/turn_right.png
0 → 100644
View file @
fc1586ea
3.22 KB
maplibrary/src/main/res/drawable-xhdpi/turn_right_font.png
0 → 100644
View file @
fc1586ea
4.42 KB
maplibrary/src/main/res/drawable-xhdpi/turn_right_ver.png
0 → 100644
View file @
fc1586ea
3.4 KB
maplibrary/src/main/res/drawable-xhdpi/turn_rota.png
0 → 100644
View file @
fc1586ea
8.41 KB
maplibrary/src/main/res/drawable-xhdpi/turn_zhixing.png
0 → 100644
View file @
fc1586ea
2.65 KB
maplibrary/src/main/res/drawable/rect_land_10.xml
0 → 100644
View file @
fc1586ea
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:bottomLeftRadius=
"10dp"
android:bottomRightRadius=
"10dp"
/>
<solid
android:color=
"#3385FE"
/>
</shape>
\ No newline at end of file
maplibrary/src/main/res/drawable/rect_white_10.xml
0 → 100644
View file @
fc1586ea
<?xml version="1.0" encoding="utf-8"?>
<shape
xmlns:android=
"http://schemas.android.com/apk/res/android"
android:shape=
"rectangle"
>
<corners
android:radius=
"10dp"
/>
<solid
android:color=
"@color/white"
/>
</shape>
\ No newline at end of file
maplibrary/src/main/res/layout/activity_mine_nai_dir.xml
0 → 100644
View file @
fc1586ea
<?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:id=
"@+id/main"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
tools:context=
".ui.MineNaiDirActivity"
>
<com.sd.maplibrary.ui.MapMultiView
android:id=
"@+id/mapMultiView"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
/>
<include
android:id=
"@+id/layout_navi"
layout=
"@layout/my_navi_view"
android:layout_width=
"@dimen/map_left_top_widget"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"@dimen/dp_10"
android:layout_marginTop=
"@dimen/dp_10"
/>
</RelativeLayout>
\ No newline at end of file
maplibrary/src/main/res/layout/my_navi_view.xml
0 → 100644
View file @
fc1586ea
<?xml version="1.0" encoding="utf-8"?>
<layout
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
>
<data>
<import
type=
"android.view.View"
/>
<!-- <variable-->
<!-- name="svm"-->
<!-- type="com.ltzw.adasdriver.viewmodels.shards.ShowNaiVM" />-->
<variable
name=
"route"
type=
"com.minedata.minenavi.navi.RouteBase"
/>
</data>
<!-- -->
<RelativeLayout
android:id=
"@+id/my_navi_info"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:background=
"@drawable/rect_white_10"
android:orientation=
"vertical"
>
<RelativeLayout
android:id=
"@+id/RL_1"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:paddingHorizontal=
"@dimen/dp_10"
android:paddingTop=
"10dp"
>
<!-- 拐弯布局-->
<RelativeLayout
android:id=
"@+id/RL_turn"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
>
<com.sd.maplibrary.ui.widget.MyTurnIconView
android:id=
"@+id/turnIconView"
android:layout_width=
"@dimen/dp_55"
android:layout_height=
"@dimen/dp_55"
android:scaleType=
"centerInside"
/>
<RelativeLayout
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignTop=
"@+id/turnIconView"
android:layout_marginLeft=
"8dp"
android:layout_toRightOf=
"@+id/turnIconView"
>
<TextView
android:id=
"@+id/tv_turnDistance"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginTop=
"-3dp"
android:textColor=
"@color/text_black"
android:textStyle=
"bold"
tools:text=
"2.5公里"
tools:textSize=
"22sp"
/>
<TextView
android:id=
"@+id/tv_turnAction"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_alignBaseline=
"@id/tv_turnDistance"
android:layout_marginStart=
"5dp"
android:layout_marginLeft=
"@dimen/dp_5"
android:layout_toRightOf=
"@id/tv_turnDistance"
android:singleLine=
"true"
android:textColor=
"@color/text_black"
android:textStyle=
"bold"
tools:text=
"左转"
/>
<TextView
android:id=
"@+id/tv_turnRoadName"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/tv_turnDistance"
android:layout_alignLeft=
"@+id/tv_turnDistance"
android:layout_marginTop=
"2dp"
android:textColor=
"#80000000"
tools:text=
"北清路"
/>
</RelativeLayout>
</RelativeLayout>
<LinearLayout
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:layout_below=
"@+id/RL_turn"
android:layout_marginTop=
"5dp"
android:gravity=
"center_vertical"
android:orientation=
"horizontal"
>
<TextView
android:id=
"@+id/tv_residualTimeDistance"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/text_black"
android:textSize=
"11sp"
tools:text=
"19公里"
/>
<TextView
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:text=
"•"
android:textColor=
"@color/text_black"
/>
<!-- 剩余时间-->
<TextView
android:id=
"@+id/tv_time"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/text_black"
android:textSize=
"11sp"
tools:text=
"12分钟"
/>
<ImageView
android:id=
"@+id/iv_bottomTrafficLight"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:layout_marginLeft=
"3dp"
android:src=
"@drawable/traffic"
/>
<TextView
android:id=
"@+id/tv_trafficLightNumber"
android:layout_width=
"wrap_content"
android:layout_height=
"wrap_content"
android:textColor=
"@color/text_black"
android:textSize=
"11sp"
tools:text=
"4"
/>
<TextView
android:id=
"@+id/tv_arriveTime"
android:layout_width=
"match_parent"
android:layout_height=
"wrap_content"
android:gravity=
"end"
android:maxLines=
"1"
android:textColor=
"@color/text_black"
android:textSize=
"11sp"
tools:text=
"09:41到"
/>
</LinearLayout>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/RL_2"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_15"
android:layout_below=
"@+id/RL_1"
android:layout_marginTop=
"2dp"
>
<com.sd.maplibrary.ui.widget.TmcBar
android:id=
"@+id/tmcBar_view"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_5"
android:layout_centerVertical=
"true"
android:layout_marginTop=
"4dp"
android:background=
"#00000000"
tools:ignore=
"RtlSymmetry"
/>
<View
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:layout_below=
"@+id/tmcBar_view"
android:background=
"#3385FE"
/>
<com.sd.maplibrary.ui.widget.HorCarTmc
android:id=
"@+id/horCarTmc"
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
android:background=
"#00000000"
android:orientation=
"horizontal"
/>
</RelativeLayout>
<RelativeLayout
android:id=
"@+id/RL_3"
android:layout_width=
"match_parent"
android:layout_height=
"@dimen/dp_40"
android:layout_below=
"@+id/RL_2"
android:background=
"@drawable/rect_land_10"
>
<!-- 车道线 -->
<com.sd.maplibrary.ui.widget.MyLaneView
android:id=
"@+id/naviLandBand"
android:layout_width=
"wrap_content"
android:layout_height=
"match_parent"
android:layout_centerHorizontal=
"true"
android:layout_marginHorizontal=
"5dp"
android:paddingBottom=
"2dp"
android:visibility=
"visible"
/>
<!-- <com.minedata.minenavi.navi.LaneView-->
<!-- android:id="@+id/naviLandBand"-->
<!-- android:layout_width="match_parent"-->
<!-- android:layout_height="wrap_content"-->
<!-- android:layout_centerHorizontal="true"-->
<!-- android:layout_marginHorizontal="5dp"-->
<!-- android:background="#3385FE"-->
<!-- android:visibility="visible" />-->
</RelativeLayout>
<!-- <ImageView-->
<!-- android:layout_width="@dimen/dp_15"-->
<!-- android:layout_height="@dimen/dp_15"-->
<!-- android:layout_below="@+id/RL_1"-->
<!-- android:scaleType="centerInside"-->
<!-- android:src="@drawable/my_small_car" />-->
<!-- tools:ignore="RtlSymmetry"-->
</RelativeLayout>
</layout>
\ No newline at end of file
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment