【发布时间】:2013-11-21 07:58:46
【问题描述】:
我必须在滚动视图中显示地图我可以显示地图,但是当我滚动屏幕时,地图正在消失。我附上了屏幕截图。
代码:
FragmentManager myFragmentManager = getSupportFragmentManager();
SupportMapFragment mySupportMapFragment = (SupportMapFragment) myFragmentManager.findFragmentById(R.id.map);
_myMap = mySupportMapFragment.getMap();
XML:
<RelativeLayout
android:id="@+id/map_contact_layout"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_marginLeft="5dip"
android:layout_toLeftOf="@+id/grid_layout"
android:layout_weight="1" >
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.SupportMapFragment"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
</RelativeLayout>
【问题讨论】:
标签: android map scrollview fade