我有一个RelativeLayout
,这个布局有两个孩子,一个是MapView
,另一个是RelativeLayout
,它包含一个按钮。如何将RelativeLayout放置在RelativeLayout的底部?
我希望它看起来像
但我的透明包装盒(一RelativeLayout
)总是在地图上显示出来。
<RelativeLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<com.google.android.maps.MapView
android:id="@+id/mapView"/>
<test.project.TransparentPanel
android:layout_width="fill_parent"
android:layout_width="fill_parent">
<Button
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Click Me!"/>
</test.project.TransparentPanel>
</RelativeLayout>
(我已经离开了在代码中的一些东西)