Bug 55504 - Android.Content.Res.ScreenLayout should be marked with [Flag]
Summary: Android.Content.Res.ScreenLayout should be marked with [Flag]
Alias: None
Product: Android
Classification: Xamarin
Component: Android+BCL Integration ()
Version: 7.2 (15.1)
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Atsushi Eno
Depends on:
Reported: 2017-04-23 07:13 UTC by softlion
Modified: 2017-10-04 16:40 UTC (History)
3 users (show)

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

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 for Bug 55504 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description softlion 2017-04-23 07:13:41 UTC
namespace Android.Content.Res
  public enum ScreenLayout

ScreenLayout contains Masks and should be marked with [Flag]
Comment 1 Mark McLemore 2017-06-23 18:52:38 UTC
Hi, can you add some additional context and/or attach a test case for this problem?  This topic provides some useful guidelines: https://developer.xamarin.com/guides/cross-platform/troubleshooting/questions/howto-file-bug/

Comment 2 softlion 2017-06-23 19:22:36 UTC
Well this is not really a bug.

Do you know what [Flag] means ?
Comment 3 Mark McLemore 2017-06-23 20:57:29 UTC
The broader developer community would be the best and quickest place to seek answers to questions:

[0] http://stackoverflow.com/questions/tagged/xamarin
[1] https://forums.xamarin.com/
Comment 4 Mark McLemore 2017-06-23 21:02:36 UTC
In case it might also be a helpful reference, you can find some general recommendations on the best places to ask various kinds of questions about Xamarin on:
Comment 5 softlion 2017-06-23 22:53:08 UTC
LOL you are a newbie here and a newbie to c# aren't you ?

Is this your answer for real ?
Please go to msdn, check for the FlagAttribute in the doc.
Once done, you'll be enlightened with the power of resolving this simple issue.

I've already reported other issues like this one and they were fixed.
So do you job, for real !
Comment 6 Mark McLemore 2017-06-23 23:07:48 UTC
Hello @softlion; sorry, my misunderstanding: you were saying above that this is not really a bug. Do you mean that this is a documentation bug?  Can you tell us exactly how you would like this to be resolved?
Comment 7 Mark McLemore 2017-06-23 23:53:28 UTC
If it's a documentation bug, can you provide a link to the page (or pages) in error?  You mentioned MSDN -- are you referring to a page on msdn.microsoft.com or developer.xamarin.com/api (or both)?  Also, you mention "[Flag]", do you really mean "[Flags]" (or perhaps "[System.Flags]")?  Thanks in advance!
Comment 8 Jon Douglas [MSFT] 2017-10-04 16:40:27 UTC
I am confirming this issue based on my observations and previous investigations of similar reports by softlion:


You can also take a look at the API docs and notice there is no [Flags] attribtue on this item:


Just to show what a "marked" item looks like, you can see this here:


Additionally you can look directly at a decompiled DLL on these enums as well.