안드로이드 개발 질문/답변
(글 수 45,052)
화면 구성하는데 스크롤뷰에 이미지뷰를 넣었는데 ... 위에 공간이 떠버리는데???
저는 위부분부터 이미지뷰를 보고 싶은데 잘안되네요 ~ ㅜㅜ
레이아웃 구성
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1">
<LinearLayout
android:id="@+id/linerar_new1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="visible"
android:gravity="top">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/sub2"/>
</ScrollView>
</LinearLayout>
저는 위부분부터 이미지뷰를 보고 싶은데 잘안되네요 ~ ㅜㅜ
레이아웃 구성
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:layout_weight="1">
<LinearLayout
android:id="@+id/linerar_new1"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:visibility="visible"
android:gravity="top">
<ScrollView
android:layout_width="fill_parent"
android:layout_height="fill_parent">
<ImageView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:src="@drawable/sub2"/>
</ScrollView>
</LinearLayout>
2011.04.05 22:18:42
<FrameLayout
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<ScrollView
android:layout_width="wrap_contents"
android:layout_height="wrap_contents">
<ImageView
android:layout_width="wrap_contents"
android:layout_height="wrap_contents"
android:src="@drawable/sub2"/>
</ScrollView>
</FrameLayout>
@drawable/sub2 이미지가 세로크기보다 크면 원하는대로 스크롤 되겠군요



