Forum Xamarin.Android

adding image as per the docs.

wallaceturnerwallaceturner USMember
edited September 2015 in Xamarin.Android

i am following the docs to add an image via ImageView

This example has an ImageView that requires a drawable resource named flag. The ImageView has its src attribute set to @drawable/flag. When the activity starts, Android will look inside the directory Resource/Drawable for a file named Activity1Image and load that file and display it in the ImageView.

1) I do not understand why it says its looking for an image named Activity1Image can someone explain?
2) I have successfully added an image but instead of using Activity1Image.gif I am using flag.gif but it does not show in the designer - only at runtime. Are images supposed to show in the designer?

Sign In or Register to comment.