VEINHORN / ScrollGalleryView

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

Can i add text for each imageview #30

Closed firestork closed 5 years ago

firestork commented 8 years ago

Can i add text for each imageview

VEINHORN commented 8 years ago

@firestork For now no. I plan to add it in next release.

firestork commented 8 years ago

Thanks you.

lesjaw commented 7 years ago

Is it already added? How to add text in image?

andreluizreis commented 6 years ago

I look forward to this feature too.

UniqueJoy commented 5 years ago

does it added in the current release @VEINHORN ???

VEINHORN commented 5 years ago

@UniqueJoy Hi! At the current moment, i mean version 1.2.6 this feature is unsupported. :/ But you can change text in ActionBar like this (using ScrollGalleryView callbacks). But I'm working on this feature and I hope it will appear in next release.

VEINHORN commented 5 years ago

@firestork @lesjaw @andreluizreis @UniqueJoy Starting from version 1.2.7 you can now add images with description using MediaInfo image(String url, String description); method from MediaHelper interface (using new GalleryBuilder approach):

.add(image(
    "https://i.pinimg.com/originals/1b/d3/f0/1bd3f0e146da86f9c504e89a0b7e1403.jpg",
    "Old Ship"
))

or directly to the ScrollGalleryView using addMedia() method:

galleryView.addMedia(MediaInfo.mediaLoader(
new PicassoImageLoader(
    "https://upload.wikimedia.org/wikipedia/commons/thumb/8/81/USRC_Salmon_P_Chase_-_LoC_4a25817u.jpg/1200px-USRC_Salmon_P_Chase_-_LoC_4a25817u.jpg"),
    "The word barque entered English via French, which in turn came from the Latin barca by way of Occitan, Catalan, Spanish or Italian."
));

So now text on each image looks like this:

text-on-image