I'm building a layout that contains two buttons and a MapView. The buttons should be placed above and below the MapView. I've tried several combinations of layouts (Relative, Linear, Frame...), but the MapView does not support the layout_height=wrap_content unless I use a specific height like layout_height="200dp".
The tope button is displayed, but the bottom button is not. Below is my test XML file.
Any suggestions?
android:layout_width="fill_parent" android:layout_height="fill_parent" >
<Button
android:id="@+id/btn1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button1"
android:background="#FF0000" />
<com.google.android.maps.MapView
android:id="@+id/map1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:apiKey="my map key (removed for example)"
/>
<Button
android:id="@+id/btn2"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:text="Button2"
android:background="#00FF00" />