0

What is the use of shadow in Android?
How do I implement shadow in thumbnails?
If someone has a sample screenshot, do you mind sharing it?

Mxyk
  • 10,678
  • 16
  • 57
  • 76
RBJ
  • 951
  • 8
  • 22
  • 34

2 Answers2

0

Not knowing what are your objects could be tricky. you can define what's the background in the picture and filter it, then you can strech your image in the direction of the shadow. now filter everything but the background, so you've got 3 layers - background, shadows and objects. place the shadows on the background and on top of that the objects.

Symbol
  • 145
  • 3
  • 10
0

Shadows can be added to TextViews through XML or programmatically.

If you'r wanting to add a shadow to a standard view (or any subclasses) this thread should point you in the right direction.

Community
  • 1
  • 1
Ljdawson
  • 12,091
  • 11
  • 45
  • 60
  • can you use shadow in thumbnails video. possible or not – RBJ Dec 09 '10 at 12:14
  • I think so, if you store the video thumbnail as an image you could then use this method to set a shadow layer: http://developer.android.com/reference/android/graphics/Paint.html#setShadowLayer%28float,%20float,%20float,%20int%29 – Ljdawson Dec 09 '10 at 12:18
  • yes now i retrieve video is thumbnails in gallery...i want to create shadow for that thumbnails (images)..when i click the thumbnails that video will play...so i want fix this shadow function also....my questions write or wrong because i new android application...dont mistake me.... – RBJ Dec 09 '10 at 12:29