[android-developers] Re: Creating a custom-view with rounded corners

2014-11-13 Thread Streets Of Boston
Simple solution: Use a FrameLayout and set the foreground drawable: https://developer.android.com/reference/android/widget/FrameLayout.html#setForeground(android.graphics.drawable.Drawable) The foreground drawable is drawn *over/on top of* the background and the children of a FrameLayout. If th

[android-developers] Re: Creating a custom-view with rounded corners

2014-11-13 Thread Doug Gordon
I don't believe that would (or could) be possible. After all, the Android o/s doesn't "understand" the content of your background image. Those rounded corners just exist as pixels in an image and are not defined mathematically in any way so that the drawing software could clip to them. All that