Forum Visual Studio

How to get Resource Id and drawable id with resource name?

VijilVijil INMember

How to get Resource Id and drawable id with resource name

Answers

  • PubuduGayanPubuduGayan NZMember ✭✭✭

    @vijil
    you mean like this

    listView = this.FindByName("listName");

  • VijilVijil INMember

    No.. I have one Image name in a variable and I just want to load that image to a imageview.
    Drawable Icon = Resources.GetDrawable(weathericonid);
    imgweathericon.SetImageDrawable(Icon);
    this code is note working properly. Please help

Sign In or Register to comment.