2012-01-31 5 views
0

지도 아래에 그림을 배치하려합니다. 이미지는 선형 레이아웃의 배경으로 정의됩니다. 내가 어떻게 그렇게 할 수 있니? 현재지도보기는 레이아웃 상단에 있으며 이미지의 일부를 덮고 있습니다.장소지도 위의 선형 레이아웃

<?xml version="1.0" encoding="utf-8"?> 
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 
    android:id="@+id/address_view" 
    android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    android:background="@drawable/pocket_one_map"> 

    <RelativeLayout 
     android:id="@+id/relativeLayout1" 
     android:layout_width="300dp" 
     android:layout_height="450dp" android:layout_gravity="center" 
     android:layout_marginLeft="10dp"> 

    <com.esri.android.map.MapView  
    android:id="@+id/map" android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    initExtent = "-200.6 20672.6 25000.4 52887.4"> 

    </com.esri.android.map.MapView> 

    </RelativeLayout> 

</LinearLayout> 

어떤 도움이 친절하게 평가 될 것입니다 다음과 같이

내 코드입니다. 감사.

답변

0

을 가지고 그것을 가지고 내에서이

<RelativeLayout 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content"> 

     <ImageView 
     android:layout_width="fill_parent" 
     android:layout_height="wrap_content" 
     android:background="img"/ > 

<com.esri.android.map.MapView  
    android:id="@+id/map" android:layout_width="fill_parent" 
    android:layout_height="fill_parent" 
    initExtent = "-200.6 20672.6 25000.4 52887.4"> 

    </com.esri.android.map.MapView> 

    </RelativeLayout> 
처럼 이하로 설정
관련 문제