【发布时间】:2014-02-11 06:23:22
【问题描述】:
我在 xml 布局中添加了一个谷歌地图片段,但它占据了整个屏幕。有谁知道是否可以允许片段的布局尺寸占据屏幕的一半和另一半线性甚至相对布局?我想出了这个模型来说明我的意思。我的布局代码也发布在下面。有人可以就这个问题给我一些建议吗?
<fragment xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/map"
android:layout_width="match_parent"
android:layout_height="match_parent"
class="com.google.android.gms.maps.SupportMapFragment"/>
【问题讨论】:
标签: android android-layout google-maps-api-3 android-fragments