1
我的FrameLayout的小孩MapBoxViewMapBox的Android布局无效时,父视图改变大小
<?xml version="1.0" encoding="utf-8"?>
<FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
xmlns:mapbox="http://schemas.android.com/apk/res-auto">
<com.mapbox.mapboxsdk.views.MapView
android:id="@+id/mapBoxMapView"
android:layout_width="match_parent"
android:layout_height="match_parent"
mapbox:access_token="@string/accessTokenMapBox"/>
</FrameLayout>
更改父视图的大小,但MapView类没有更新布局
我尝试打电话requsetLayout()尝试invalidateLayout() - 没有效果。
这不起作用。地图还在削减。 –
如果你仍然有这个问题,我可以帮助你发布你的java代码,改变布局。现在用你发布的代码,我没有看到任何问题。 – cammace