<ScrollView
android:layout_weight="9.2"
android:layout_width="match_parent"
android:layout_height="0dp"
android:background="#ffffff">
<ImageView
android:id="@+id/iv"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:adjustViewBounds="true"
android:src="@drawable/img01
/>
</ScrollView>
BitmapFactory.Options options = new BitmapFactory.Options();
options.inSampleSize = 4;
Bitmap src = BitmapFactory.decodeResource(getResources(), pic, options);
Bitmap resized = Bitmap.createScaledBitmap( src, src.getWidth(), src.getHeight(), true );
Log.e("가로/세로:",src.getWidth()+"/"+src.getHeight());
iv.setImageBitmap(resized);
이런식으로 세로로 긴 이미지를 스크롤뷰안에 넣는것을 구현 중입니다.
세로로 이미지가 길어서 가로가 1500정도면 세로는 9000~10000 정도인데요,
이렇게 비율을 조절해서 보여주지 않으면 메모리문제 땜에 안되더라구요..
그렇다고 1/4로 줄여서 하자니 조금 깨져보여서 그것도 문제인데..ㅠ
어떤식으로 이미지를 선명하게 보여줄 수 있을까요..?