アプリで、 を に埋め込み、MapFragment
カスタムScrollView
フラグメントを の上に置きたいSupportMapFragment
小さい画面では魅力的に機能しますが、十分な大きさのディスプレイでは、マップは可能な限りすべてのサイズを占有していません.
layout_height
以下の修正の代わりにmatch_parent
、LinearLayout をwrap_content
いじってみました。gravity
私が試すことができる他のトリックはありますか?
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical">
<LinearLayout
android:id="@+id/mapParent"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:orientation="vertical"
android:gravity="center_horizontal|bottom">
<fragment
android:name="SomeCustomFragment"
android:id="@+id/details_fragment"
android:layout_width="fill_parent"
android:layout_height="wrap_content" />
<RelativeLayout
android:id="@+id/relativeLayout1"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:minHeight="480dp">
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="480dp"
class="com.google.android.gms.maps.SupportMapFragment"
android:layout_alignParentBottom="true"/>
<View
android:id="@+id/imageView123"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@android:color/transparent" />
</RelativeLayout>
</LinearLayout>
</ScrollView>