Is there any way to define the clip region of a ViewGroup in android (Honeycomb)? For example, I have a ListView with an image background that has rounded corners. As I scroll through the list, the children stick out past the corners of the background - I would prefer them to clip within the rounded corners.
The left image is what it is currently doing, and the right is what I'd like.
I was looking at ClipDrawable, but it seems that this may only be used for progress bars?
Also, I'm trying to do this in a widget. So I cannot use a custom view and override onDraw for masking.
Thank you!