안드로이드 개발 질문/답변
(글 수 45,052)
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical">
<ImageView
android:layout_width="fill_parent"
android:layout_height="330dip"
android:background="@drawable/studio_top"/>
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1"
android:scrollbars="none"
android:fadingEdge="none">
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView android:id="@+id/studio_img"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:src="@drawable/studio_txt"/>
</LinearLayout>
</ScrollView>
<ImageView
android:layout_width="fill_parent"
android:layout_height="30dip"
android:background="#fff"></ImageView>
</LinearLayout>
위에 그림들도 다들어가는데
스크롤뷰 안쪽에
이미지뷰 크기만한 여백이
아래위로 까맣게 생깁니다.
Imageview 부분소스를 background로 하면
여백부분을 그림이 다 채워서 그림비율이 안맞게됩니다.
이미지크기는 600(가로)x 889(세로)이고, 갤럭시탭으로 돌리고있습니다.
뭐가 문제인거죠?