android如何实现Picasso图片加载库?
How to implement Picasso image loading library in android?
我是 android 的新手 我已经尝试使用 YouTube tutorial 的 Glide 库,但我想使用 Picasso 库。
我目前使用的代码:
Glide.with(this).load(currentUser.getPhotoUrl()).into(navUserPhoto);
- 将毕加索库导入您的项目:
implementation 'com.squareup.picasso:picasso:2.71828'
- 使用 picasso 代替 Glide:
Picasso.get().load(currentUser.getPhotoUrl()).into(navUserPhoto);
如果需要额外修改,请查看毕加索documentation。
//install this one in to the build.gradile(Module)
//in dependencies
//After sync the project
implementation 'com.squareup.picasso:picasso:2.71828'
我是 android 的新手 我已经尝试使用 YouTube tutorial 的 Glide 库,但我想使用 Picasso 库。
我目前使用的代码:
Glide.with(this).load(currentUser.getPhotoUrl()).into(navUserPhoto);
- 将毕加索库导入您的项目:
implementation 'com.squareup.picasso:picasso:2.71828'
- 使用 picasso 代替 Glide:
Picasso.get().load(currentUser.getPhotoUrl()).into(navUserPhoto);
如果需要额外修改,请查看毕加索documentation。
//install this one in to the build.gradile(Module)
//in dependencies
//After sync the project
implementation 'com.squareup.picasso:picasso:2.71828'