Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/191.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 从android中Firebase中存储的url加载图像_Java_Android_Firebase Realtime Database_Imageview - Fatal编程技术网

Java 从android中Firebase中存储的url加载图像

Java 从android中Firebase中存储的url加载图像,java,android,firebase-realtime-database,imageview,Java,Android,Firebase Realtime Database,Imageview,我有一个firebase数据库,其中存储了多个图像URL。 我还有一个活动,我必须在imageview中显示所有图像 String temp = postSnapshot.getValue().toString(); Picasso.with(MainActivity.this).load(temp).fit().centerCrop().into(mImageView); 通过上述方式,我正在获取数据,但只有一个图像url被获取并显示在imageview中

我有一个firebase数据库,其中存储了多个图像URL。 我还有一个活动,我必须在imageview中显示所有图像

String temp = postSnapshot.getValue().toString();                  
Picasso.with(MainActivity.this).load(temp).fit().centerCrop().into(mImageView);

通过上述方式,我正在获取数据,但只有一个图像url被获取并显示在imageview中。如何对所有图像执行此操作。感谢您需要实现listview或RecyclerView

然后填充每一个


请参见此处的我的实现:

它会一次又一次地加载相同的图像吗?如何移动到数据库中的下一个条目。
FirebaseListAdapter
有一个名为
populateView
的覆盖方法,该方法将转到每个位置。请看,您需要一个列表视图或其他东西来遍历值并显示它们。