【发布时间】:2019-09-19 08:04:58
【问题描述】:
我正在开发一个与地图和导航相关的安卓应用程序。我想在屏幕上显示导航活动时向用户显示一些信息,但由于导航活动占据了我的整个屏幕,我无法显示任何内容。有什么方法可以编辑该屏幕的 UI 或任何其他替代方法,我如何通过转弯导航在转弯顶部显示一些信息?
【问题讨论】:
标签: android google-maps navigation
我正在开发一个与地图和导航相关的安卓应用程序。我想在屏幕上显示导航活动时向用户显示一些信息,但由于导航活动占据了我的整个屏幕,我无法显示任何内容。有什么方法可以编辑该屏幕的 UI 或任何其他替代方法,我如何通过转弯导航在转弯顶部显示一些信息?
【问题讨论】:
标签: android google-maps navigation
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context=".MapsActivity" />
//Add your Layout here, It overlaps the Map Screen
</RelativeLayout>
【讨论】: