Bug 22261 - Android.Views.View.ClipToOutline not reflected when drawing
Summary: Android.Views.View.ClipToOutline not reflected when drawing
Status: RESOLVED INVALID
Alias: None
Product: Android
Classification: Xamarin
Component: Bindings ()
Version: 4.16.0
Hardware: PC Mac OS
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2014-08-21 11:36 UTC by Ben O'Halloran
Modified: 2014-08-27 16:03 UTC (History)
4 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Java/Xamarin full and sanity projects (1.56 MB, application/zip)
2014-08-21 11:36 UTC, Ben O'Halloran
Details
Java/Xamarin full and sanity projects 2 (1.57 MB, application/zip)
2014-08-22 09:35 UTC, Ben O'Halloran
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED INVALID

Description Ben O'Halloran 2014-08-21 11:36:44 UTC
Created attachment 7755 [details]
Java/Xamarin full and sanity projects

View.ClipToOutline is not being used when drawing a view.

To reproduce:
Open ElevationDrag solution.
Run ClipTest (sanity check) project.

Expected Result:
Pink shape should be a circle

Result:
Pink shape is a rectangle/square.

Also included in the zip is the original Java sample. I've added a similar sanity check module to that project. The two lines mentioned in the comments cause the square to become a circle (the view is actually clipped). This is the expected result.


Environment:
Xamarin Studio 5.3 build 423
Xamarin Android 4.17
Comment 1 Atsushi Eno 2014-08-22 07:47:57 UTC
"CommonSampleLibrary" is missing from the archive...
Comment 2 Ben O'Halloran 2014-08-22 09:35:02 UTC
Created attachment 7768 [details]
Java/Xamarin full and sanity projects 2

Upload project which includes CommonSampleLibrary.
Comment 3 Ben O'Halloran 2014-08-27 16:03:44 UTC
The views only seem to clip with everything (target framework, min android version, target android version) manually set to Android-L. 

The sample is now behaving as it should.

Marking as invalid.