Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

Referencing Android drawable resources programmatically

$
0
0

I was exploring putting icons on the TabbedPage tabbar using a custom renderer when I noticed something rather interesting regarding the treatment of drawable resources in the Android project.

According to this document, when I add a AdroidResource to a project the Resource.designer.cs file is supposed to be updated and an ID given to the new resource.

This is not happening for me.

Questions:
1. The documentation screen shots show Xamarin Studio, where as I am using Visual Studio. Would the actions be different in VS vs. XS?

  1. Since this is actually Xamarin.Forms, does that document apply?

  2. Any ideas how to get around the issue of the references not being added to the resources.designer.cs, besides entering them manually?


Viewing all articles
Browse latest Browse all 58056

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>