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 is understood by the system are the rectangular coordinate limits.

On Wednesday, November 12, 2014 5:54:02 PM UTC-5, dashman wrote:
>
> I've got a view that goes into a listview and would like each to have a 
> rounded corners.
>
> For the custom view layout, I set the parent to a RelativeLayout and
> and set the background to a shape - that sets rounded corners.
>
> <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android";
>     android:layout_width="wrap_content"
>     android:layout_height="wrap_content"
>     android:background="@drawable/bg"
>     >
>     
> But the problem is that if inside the view, if i draw to the edges - it 
> doesn't
> get clipped to the rounded corners.
>
> Any way to force that.
>
>
>

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to