2014-04-11 1 views
1

내 응용 프로그램에서 Universal Image Loader를 사용하고 있습니다.범용 이미지 로더 이미지 눈금

이미지를 다운로드하는 것이 가장 좋습니다.하지만 문제가 하나 있습니다.

장치의 너비보다 작은 이미지를 다운로드합니다.

너비 = 장치 너비와 높이 조정이 필요한 이미지가 필요합니다.

어떻게하면됩니까?

+0

그냥 속성 안드로이드를 확인에서 이미지 크기에 따라 달라집니다 : scaleType은 = "fitXY는" –

+0

당신이 사용할 수있는'안드로이드 : ImageView의 경우 scaleType = "fitXY"또는 android : scaleType = "centerCrop"입니다. – Piyush

+0

당신은 @Umerciful를 달성하고 싶은 것을 얻었습니까 ???? –

답변

0

<ImageView 
android:id="@+id/imageView_clock" 
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:scaleType="centerCrop" 
android:src="@drawable/ic_icon" /> 

같은 이미지 뷰를 사용하고 웹

android:scaleType="centerCrop" // use this