Atlas Messages RecyclerView图像与Picasso绑定

时间:2018-03-01 18:07:26

标签: android picasso

我正在使用AtlasMessagesRecyclerView作为Ui帮助器与层sdk这样 当它绑定一个已经使用画廊或相机毕加索发送的图像时,给出了这个例外:

java.lang.IllegalStateException: Unrecognized type of request: Request{layer:///messages/61ca843f-407c-479e-a7ee-15f1be648263/parts/1 RoundedTransform.45.0 resize(936,702)}    '

和这个AtlasMessagesRecyclerView设置:

Picasso picasso =  new Picasso
            .Builder(getApplicationContext())
            .executor(Executors.newSingleThreadExecutor())
            .indicatorsEnabled(true)
            .loggingEnabled(true)
           .memoryCache(new LruCache(this))
           .listener(new Picasso.Listener() {
               @Override
               public void onImageLoadFailed(Picasso picasso, Uri uri, Exception exception) {
                   Log.e("Picasso" , "Uri"+uri.toString());
                   Log.e("Picasso" , "exception"+exception.toString());
                   exception.printStackTrace();
               }
           })
            .build();

messagesList = ((AtlasMessagesRecyclerView) findViewById(R.id.messageslist))
            .init(layerClient,picasso )
            .setConversation(conversation)
            .addCellFactories(
                    new ThreePartImageCellFactory(layerClient,picasso),
                    new TextCellFactory(),
                    new LocationCellFactory(picasso)
                    );

0 个答案:

没有答案