Android: gallery widget and shadows

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

Thanks in advance!

+2


a source to share


2 answers


It depends on what kind of view you add to the Gallery. For example, if the TextView, you can use android:shadowColor

, android:shadowDx

, android:shadowDy

and android:shadowRadius

to indicate a shadow.



Providing your XML layout that you are using in the Gallery adapter and explaining what you want to bind the shadow to will help provide a clearer answer.

+2


a source


Here's where you go if you're still looking for it: Custom ImageView with Shadow Printing



0


a source







All Articles