리사이징 함수는 아래 소스와 같이 구현하였습니다. 기기별로 테스트 해보고 있는데 일반적인 해상도는 잘 리사이징 되어 보여지는데 갤럭시s4(1920*1080)에서는 이미지가 아주 작아져서 출력됩니다. 무엇때문에 그렇게 출력되는지 모르겠습니다.
<ImageView
android:id="@+id/intro"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:maxWidth="200dp"
android:maxHeight="200dp"
android:layout_weight="1"
android:adjustViewBounds="true"
/>
------------------------------------------------------------------------------------------------------
public Bitmap resizeBitmapImage(Bitmap source, int maxResolution){
int width = source.getWidth();
int height = source.getHeight();
int newWidth = width;
int newHeight = height;
float rate = 0.0f;
if(width > height)
{
if(maxResolution < width)
{
rate = maxResolution / (float) width;
newHeight = (int) (height * rate);
newWidth = maxResolution;
}
}
else
{
if(maxResolution < height)
{
rate = maxResolution / (float) height;
newWidth = (int) (width * rate);
newHeight = maxResolution;
}
}
//imgView.setImageDrawable(Bitmap.createScaledBitmap(source, newWidth, newHeight, true));
return Bitmap.createScaledBitmap(source, newWidth, newHeight, true);
}