将下载的图片从url传递给方法

时间:2019-11-06 15:38:50

标签: android

将下载的图像传递到(此处传递图像)。我不知道该怎么做。我正在使用来自github的简介滑块库。该方法采用R.drawable.image

之类的整数。
addSlide(new SlideFragmentBuilder()
                        .backgroundColor(R.color.colorPrimary)
                        .buttonsColor(R.color.introButton)
                        .image(<Pass Image Here>)
                        .title(indexObject.getString("head"))
                        .description(indexObject.getString("subs"))
                        .build());

0 个答案:

没有答案