title: Xamarin.Forms Images not showing
body: <p>I am developing a <code>Cross-Platform</code> app in Xamarin Visual Studio 2019 and having issues with image display.</p>
  
  <p>I am trying to show an image with the following <code>XAML</code> code.</p>
  
  <pre><code>&lt;StackLayout Grid.Row="0" Grid.Column="0" Spacing="0" &gt;
      &lt;Image
          HorizontalOptions="CenterAndExpand"
          VerticalOptions="CenterAndExpand"
          Source="logo"
          WidthRequest="{OnPlatform iOS=300, Android=250}"&gt;
      &lt;/Image&gt;
  &lt;/StackLayout&gt;
  </code></pre>
  
  <p>Problem is <code>image not displaying on either preview or deployed app</code>.</p>
  
  <p>I took references from multiple forums including help from StackOverflow but couldn't tackle the issue.</p>
  
  <p>Here are the points and methods I worked on to resolve the issue.</p>
  
  <ol>
  <li>The file named <code>logo</code> is an android resource folder and is a proper <code>.png</code> file.</li>
  <li>Property for the file is set to <code>AndroidResource</code>.</li>
  <li><p>As per answers posted here, <a href="https://stackoverflow.com/questions/35755089/xamarin-forms-image-not-showing">Xamarin Images not showing</a>, file name does not have a hyphen in it, and also tried other posted answers on the same page.</p></li>
  <li><p>Image size 307X80 pixels so it's well within range for memory or size.</p></li>
  </ol>
  
  <p>Android Drawable folder also contain default <code>xamarin_logo.png</code> image and that file works fine. But not newly added images. Is there anything I am missing here to add these image files to the solution?</p>