1
mapview/mapfragment 위에 이미지 뷰를 배치하고 싶습니다. 이미지 뷰를 성공적으로 배치했지만 화면의 왼쪽과 오른쪽에 간격이 있습니다. 나는 imageview가 완전히 mapview를 커버 싶어요. 사용 된 이미지의 해상도는 720x1280입니다.mapfragment/mapview 위에 이미지 뷰 놓기
레이아웃 :
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent" >
<fragment
android:id="@+id/map"
android:name="com.google.android.gms.maps.MapFragment"
android:layout_width="match_parent"
android:layout_height="match_parent" />
<ImageView
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_centerInParent="true"
android:src="@drawable/sphere_background" />
</RelativeLayout>
출력 :
나에게 왼쪽에서 오른쪽으로 이미지 뷰가 완전히지도를 다룰 것입니다하는 방법을 알려주세요.
당신은 scaleType 함께 놀러 수 있지만, 나는 중심을 원하고 그래서 모든 화면 크기에 UR 요구를 feits 확장 가능한 테두리와 더불어, 9patch 이미지를 사용 유를 제안 –