0
嗨我有我的应用程序显示谷歌地图。我基本上想要移动它在屏幕右上角的片段,以便我可以添加其他内容。任何人都可以告诉我从哪里开始?我的布局如下:组织碎片相对布局
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="fill_parent" >
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>
首先添加其他视图,然后相对于视图在您想要的地方放置片段。或者把tfragment放在你想要的地方并且组织相关的视图 – Raghunandan