【问题标题】:Can you customize the ui in the google maps turn by turn navigation activity in android?您可以在 android 中自定义 google maps 中的 ui 轮流导航活动吗?
【发布时间】:2019-09-19 08:04:58
【问题描述】:

我正在开发一个与地图和导航相关的安卓应用程序。我想在屏幕上显示导航活动时向用户显示一些信息,但由于导航活动占据了我的整个屏幕,我无法显示任何内容。有什么方法可以编辑该屏幕的 UI 或任何其他替代方法,我如何通过转弯导航在转弯顶部显示一些信息?

【问题讨论】:

    标签: android google-maps navigation


    【解决方案1】:
    <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>
    

    【讨论】:

    • 不,你正在编辑地图片段,我知道我可以做到。就像我说我想在导航活动中编辑用户界面。
    猜你喜欢
    • 2016-06-28
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-11-05
    • 2017-11-20
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多