Picasso.with(this).load("https://firebasestorage.googleapis.com/v0/b/student-help-portal.appspot.com/o/3bcea.PNG?alt=media&token=90466ef2-6072-4861-849f-f1625135125d").into(imageview);
setContentView(R.layout.activity_view_photo);
答案 0 :(得分:2)
设置内容视图,并且仅在加载图像后
答案 1 :(得分:1)
您应该像这样编写代码:
setContentView(R.layout.activity_view_photo);
Picasso.with(this).load("https://firebasestorage.googleapis.com/v0/b/student-help-portal.appspot.com/o/3bcea.PNG?alt=media&token=90466ef2-6072-4861-849f-f1625135125d").into(imageview);