AndroidUIImageView
重寫ImageView,防止內(nèi)存溢出(oom),圖片不壓縮。Android新手看這里~~
如何導(dǎo)入?
-
Android Studio
allprojects { repositories { ... maven { url 'https://jitpack.io' } } } dependencies { compile 'com.github.shuhaoSCode:AndroidUIImageView:-SNAPSHOT' } eclipse。。。請(qǐng)自行copy class。
如何使用?
<com.shuhao.uiimageview.UIImageView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@mipmap/ic_launcher"/>
簡(jiǎn)單粗暴有木有,直接做ImageView就行。原來(lái)OOM的項(xiàng)目現(xiàn)在完美運(yùn)行~