私は次のレイアウトを持っています:
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
tools:context=".MainActivity" >
<fragment
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_weight="1"
class="com.google.android.gms.maps.SupportMapFragment" />
<TextView
android:text="Teste"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"/>
</LinearLayout >
地図はほぼフルスクリーンサイズで表示され、テキストビューは半分だけ表示されます。
画面の空きスペースだけをマップで埋めるにはどうすればよいですか? 他のビューに十分なスペースを確保しますか?