xamarin android resource management

68
January 12, 2019, at 9:40 PM

I had a newly created Xamarin Android native app and was trying to display a three dots icon for popup menu (⋮). Using this xml it worked.

 <ImageView
   ...
   android:src="@drawable/abc_ic_menu_overflow_material"/>

In the Resources/drawable folder there was no abc_ic_menu_overflow_material file. After investigation I found that this file and a lot of other resource files exist in the obj\Debug subfolders in my solution.

Deleting obj folder I got many compiler errors - one was about missing abc_ic_menu_overflow_material file

Also Resources.designer.cs is about 7000 !!! lines of code with Ids from resource files in obj folder.

  1. Why Xamarin allows to reference files outside the standard Resources folder?
  2. What is the usage of these additional generated resources?
  3. Are they included in apk?
  4. Should I move abc_ic_menu_overflow_material in Resources/drawable folder?
READ ALSO
Volley non-responsive after 200 records being returned?

Volley non-responsive after 200 records being returned?

I have an android app that queries an online database displays records in a listviewIt works fine until 200 records, after which there isn't any response or error

60
change visibility of Recyclerview.ViewHolder items

change visibility of Recyclerview.ViewHolder items

I have a custom recyclerview adapterBased on some conditions I want to change the visibility of ViewHolder items

61
Mutable array get overridden when get asserted to another variable

Mutable array get overridden when get asserted to another variable

I have A simple case where I Have "List A" with 5 values and another "List B" acts As TempList holding "List A" values now when I call "list_Aclear()" "list_B" also get Cleared why?

24
Why does my ForegroundService end when few hours pass?

Why does my ForegroundService end when few hours pass?

I have a ForegroundService which it is sending locations and it is running well but when it is pass more or less 12 hours the service stopsI have the same issue when I put battery saving

61