我想在我的新闻Feed中加载每张cardView中的照片,就像在facebook应用程序中一样。
我找到了壁画库,但我没有算法来进行这样的加载和调整大小。
请帮帮我。
答案 0 :(得分:0)
首先,您只需将以下行添加到build.gradle文件的dependencies部分:
compile 'com.facebook.fresco:fresco:0.12.0'
您可以使用以下链接调整大小:
http://frescolib.org/docs/resizing-rotating.html
https://guides.codepath.com/android/Displaying-Images-with-the-Fresco-Library
同时检查Glide