레이 아웃을 만드는데..

 

자꾸만 위 아래 방향에 검은 여백이 생깁니다.

 

aa.png

 

보시면 위쪽에서 이미지 끝나고 계속 검은 화면입니다.

 

왜이렇게 여백이 생기는지를 모르겠네요.

 

레이아웃 상의 명령어는 다음과 같습니다.

 

<?xml version="1.0" encoding="utf-8"?>
 <ScrollView xmlns:android="
http://schemas.android.com/apk/res/android"
  android:id="@+id/imagescroll3"
  android:layout_height="fill_parent"
  android:layout_width="fill_parent" >
 
 
<RelativeLayout
     android:orientation="vertical"
      android:layout_width="fill_parent"
      android:layout_height="fill_parent"
      android:paddingRight="5px" >
 

<ImageView
    android:id="@+id/image"
    android:layout_width="fill_parent"
    android:layout_height="fill_parent"

    android:scaleType="fitStart"
    android:src="@drawable/m" />

<Button
    android:id="@+id/btn"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"

    android:layout_centerHorizontal="true"
    android:layout_marginTop="960dp"
    android:background="@drawable/btnmain" />
 
       </RelativeLayout>
 </ScrollView>

 

 

※참고로 scaletype 에서 fitXY 설정할 경우 검은 여백은 없어지지만

   사진이 위아래로 굉장히 늘어나는 현상(위아래 공백이 있으니 레이아웃상에서 강제로 잡아당김)

   이 생겨서 굉장히.. 안좋은 이미지가 되어버립니다.