2014-04-11 46 views
1

我在我的應用程序中使用通用圖像加載器。通用圖像加載器圖像比例尺

這是最好的庫下載圖像,但我有一個問題。

我下載了比設備寬度小的圖像。

我需要的圖像有寬度=設備寬度和縮放高度。

任何想法我可以做到這一點?

+0

只要檢查該屬性的android:scaleType = 「fitXY」 –

+0

你可以用'機器人:scaleType =「fitXY」'或'android:scaleType =「centerCrop」'爲您的'ImageView'。 – Piyush

+0

你有沒有想要達到的目標@Unmerciful ???? –

回答

0

可以使用的ImageView這樣

<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