안드로이드 개발 질문/답변
(글 수 45,052)
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:id="@+id/main"
android:src="@drawable/main"
>
</ImageView>
</LinearLayout>
WVGA800 인 480*800 으로 예물을 실행시킵니다.
이미지 크기는 480*800 인데 양쪽에 검은색 공백이 남습니다. 왜그런건가요?




단말마다 해상도가 조금씩이라도 다른 부분이 많기 때문에 scaletype 을 fitXY 같은 것으로 줘서 늘려야 할겁니다.