The 2nd method seems very simple to me. If you are looking for a setDisplayShadow(boolean) method, no, there isn't one.
On Monday, November 5, 2012 6:02:56 AM UTC+8, onigunn wrote: > > Hi there, > > after googling around I'm not quite sure which way is the most > common/preferred. I would like to add some shadows to ImageViews and to a > RelativeLayout (this one is special: Shadows only on top and bottom). > > What I've found where solutions by overriding classes and the View#onDraw > method. Another approach seems to create a drawable shape and place them > directly as background source or place them before and after the desired > view. Last advice was to apply a 9patch bitmap as background. > > Isn't there a more easy way to achieve this? > > Best, > > oni > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

