Sagar Hatekar
Sagar Hatekar

Reputation: 8790

Custom Gallery Thumbnails in Android

Thanks for reading!

I am using the Android Gallery tutorial and wondering if there's a way to customize the thumbnails of the gallery> For eg: Display caption ON the image?

Thanks!

Upvotes: 1

Views: 1604

Answers (2)

Sagar Hatekar
Sagar Hatekar

Reputation: 8790

After trying all approaches suggested here, I wasn't able to still get a custom gallery the way I wanted it to. I kept running into ClassCastException. So, here's what worked for me till now. This is just a workaround and incase someone comes up with a better way to design a custom gallery - do post your answer here so I can accept it.

Thanks for helping out!

Upvotes: 1

mgv
mgv

Reputation: 8484

You can completely customize your Gallery items. Just return whatever View you want from the getView method of the ImageAdapter.

(I assume your are using this tutorial)

Upvotes: 0

Related Questions