Kotlin地图查看我的手机华为Mate 10 Lite无法查看

问题描述

它出现在带有 Android StudioMapView 模拟器中,但没有出现在我的手机上(Huawei Mate 10 Lite)。是什么原因?

<LinearLayout
    android:id="@+id/chats_fragment_layout"
    android:layout_width="200dp"
    android:layout_height="100dp"
    android:visibility="gone">

    <com.google.android.gms.maps.MapView
        android:id="@+id/chats_map_view"
        xmlns:map="http://schemas.android.com/apk/res-auto"
        android:layout_width="200dp"
        android:layout_height="100dp"
        map:liteMode="true"
        map:mapType="normal"
        map:cameraZoom="15"/>

</LinearLayout>

holder.chatsShowMessage?.visibility = View.GONE
holder.chatsFilePdfDocLinearLayout?.visibility = View.GONE
holder.chatsImageView?.visibility = View.GONE
holder.chatsFragmentLayout?.visibility = View.VISIBLE

sendLocationLat = chat.latitude.todouble()
sendLocationLng = chat.longitude.todouble()
chatsMapView = holder.chatsMapView

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)