VEINHORN / ScrollGalleryView

:bridge_at_night: Android image gallery with bottom scroll view
MIT License
531 stars 156 forks source link

Make Scroll Gallery View Dynamically -> here is the answer #96

Open mrnirva opened 3 years ago

mrnirva commented 3 years ago
List<MediaInfo> dynamicMediaList= new ArrayList<>();

for (String path : imagePath){

      dynamicMediaList.add(MediaInfo.mediaLoader(new PicassoImageLoader(path)));

}

ScrollGalleryView.from(findViewById(R.id.scroll_gallery_view))
               .settings(
                        GallerySettings
                                .from(getSupportFragmentManager())
                                .thumbnailSize(200)
                                .enableZoom(true)
                                .build()
                )
                .add(dynamicMediaList)
                .build();
VEINHORN commented 3 years ago

Hi @MrNirva . Can you please provide more details to what you suggest to add to the library?

mrnirva commented 3 years ago

@VEINHORN Hello, those who use this library usually aim to add multiple images, if you specify this in the readme file, it will be useful to many people. 😇