picasso

    -4热度

    3回答

    使用Piccaso这里是我的代码,我已经得到了错误 Picasso.with(ThreeFragement.this).load(model.getMoviePoster()).into(viewHolder.ivMoviePoster); 即使我设置ThreeFragment到的getContext,它不工作。 整个代码写在下面的地方,我想在毕加索实现到Firebase RecyclerVi

    -1热度

    1回答

    在毕加索,我使用OkHttp来请求网络。我希望将我的图像缓存在毕加索。但我也希望在我的OkHttpClient中使用日志拦截器。 要添加OkHttp的日志记录拦截器,我做这种方式: OkHttpClient provideOkHttpClient() { HttpLoggingInterceptor logging = new HttpLoggingInterceptor();

    0热度

    1回答

    下面是代码: Target mTarget = new Target() { @Override public void onBitmapLoaded(Bitmap bitmap, Picasso.LoadedFrom loadedFrom) { mBinding.imageView.setImageBitmap(bitmap); }

    0热度

    1回答

    目前我有沿着这 public class SomeActivity extends AppCompatActivity { public AppCompatImageView myFavPicture; @Override protected void onCreate(Bundle savedInstanceState) { super.o

    0热度

    1回答

    我遇到意外的kotlin和rxjava行为。我用毕加索创造加载图像的扩展功能 fun Picasso.loadBitmap(url: String) : Observable<Bitmap> = Observable.create<Bitmap> { emitter -> Log.d("picasso load bitmap", "me ${this}")

    1热度

    2回答

    我的动态类没有看到: public class CommonChattingAttachmentActivity extends AppCompatActivity { Realm realm; RealmChangeListener realmChangeListener; CommonChattingAttachmentCustomAdapter a

    -2热度

    2回答

    我在使用picasso库的应用程序中使用了尺寸为1080 * 1920的图像,但是图像没有水平覆盖整个视图。这里是毕加索 private void initBackgroundImage() { ImageView background = (ImageView) findViewById(R.id.iv_background); Picasso.with(this).load

    0热度

    1回答

    在我的应用程序中,我使用picasso下载图像并将该图像转换为字节数组。我在下方调用此方法下载并将图像转换为字节数组。 private byte[] convertToByte(String url) { Picasso.with(list_my_posts.this).load(url).fit().centerCrop().into(img); Bitmap bitmap

    2热度

    1回答

    我有以下代码,如预定装载图像脱机其不列入。它在线运行良好,但我也需要离线加载图像。我已经授予了编写外部存储的权限。任何想法都会非常有帮助。 Picasso.with(getContext()) .load(userInfo.getUserPictureUri()) .networkPolicy(NetworkPolicy.OFFLINE) .resize(80, 80

    1热度

    1回答

    我从Contentful(通过使用名为Vault的库)接收的图像的数据类型是一项资产。我想在ImageView中显示图像,但无法在毕加索中加载资源。参数可以是Uri,File,Int或String。 有没有办法从我收到的资产中获得其中一个参数?