2012-07-24 1 views

답변

1

버튼 안드로이드에이를 사용해보십시오 :

<?xml version="1.0" encoding="utf-8"?> 

<RelativeLayout 
xmlns:android="http://schemas.android.com/apk/res/android" 
android:layout_width="match_parent" 
android:layout_height="match_parent"> 
<com.google.android.maps.MapView android:id="@+id/google_maps" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:apiKey="@string/maps_key"/> 
<Button android:id="@+id/googlemaps_select_location" 
     android:layout_width="wrap_content" 
     android:layout_height="wrap_content" 
     android:layout_alignParentBottom="true" 
     android:layout_centerHorizontal="true" 
     android:text="Select"/> 
</RelativeLayout> 
: 이상 상대 레이아웃을 사용하여 배치 할 : 배경 = "@ 널 (null)"또는 안드로이드 : 배경 = "안드로이드 @ : 컬러/투명" EDIT
+0

좋아요,하지만 문제는 mapview 위에 놓는 방법입니다. – DixieFlatline

0

프레임을 FrameLayout 또는 다른 것으로 포장 할 수 있습니다. 그런 다음 FrameLayout에 버튼을 추가하고 오른쪽, 왼쪽, 위쪽 및 아래쪽에 android:layout_alignParentRight="true"을 사용하십시오. 그러면 버튼이 프레임의 가장자리를 FrameLayout의 가장자리와 정렬합니다. FrameLayout은지도를 배치해야합니다.

관련 문제