Antonio
Antonio

Reputation: 3148

Android: Gallery widget and shadows

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!

Upvotes: 2

Views: 2866

Answers (2)

dcool
dcool

Reputation: 4069

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

Upvotes: 0

Joe
Joe

Reputation: 42155

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.

Upvotes: 2

Related Questions