Resource.Designer.cs

ma1796ma1796 Member ✭✭
edited March 2018 in Xamarin.Android

Why Resource Generator produces additional unwanted codes such as following:

// In class Drawable
public const int notification_action_background = 2130837510;
public const int notification_bg = 2130837511;
public const int notification_bg_low = 2130837512;
public const int notification_bg_low_normal = 2130837513;
public const int notification_bg_low_pressed = 2130837514;
public const int notification_bg_normal = 2130837515;
public const int notification_bg_normal_pressed = 2130837516;
public const int notification_icon_background = 2130837517;
.
.
.

// In class Boolean
public const int abc_action_bar_embed_tabs = 2131296256;

// In class Color
public const int abc_action_bar_embed_tabs = 2131296256;
public const int notification_icon_bg_color = 2131099652;
public const int notification_material_background_media_default_color = 2131099648;
public const int primary_text_default_material_dark = 2131099649;
.
.
.

Also in Dimension, Id, Integer, Layout, String, Style, and Styleable classes.

How can we prevent generating of these chunk of codes?

Thanks.

Best Answer

  • JonDouglasJonDouglas US Xamurai
    Accepted Answer

    You can't at this time. These are resources that are being merged into your project and eventually to your main Resource.Designer.cs file because they are references to things like the support library / google play services that you are using in your project.

    See https://github.com/xamarin/xamarin-android/issues/1288 for more information.

Answers

  • JonDouglasJonDouglas USXamarin Team, University, Developer Group Leader Xamurai
    Accepted Answer

    You can't at this time. These are resources that are being merged into your project and eventually to your main Resource.Designer.cs file because they are references to things like the support library / google play services that you are using in your project.

    See https://github.com/xamarin/xamarin-android/issues/1288 for more information.

Sign In or Register to comment.