Question

I would like to ask you if is possible to add a shadow to each item in a gallery. And if is possible, what is the easiest way to do it?

Thanks in advance!

Was it helpful?

Solution

It depends on what type of view you are adding to the Gallery. For example, if it's a TextView, you can use android:shadowColor, android:shadowDx, android:shadowDy, and android:shadowRadius to specify the shadow.

If you provide your layout XML that you're using in the Gallery adapter, and explain what you want the shadow to be attached to, it would help give a more clear answer.

OTHER TIPS

Here you go if you are still looking for it: Custom ImageView with drop shadow

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top