image do not show in .net android?

mc 3,906 Reputation points

I add ImageView in activity_main.xml and set the src


but it is not show.

just white .

A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,066 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 70,811 Reputation points Microsoft Vendor


    If you want to set a picture to the ImageView, please create drawable folder in Resources folder. Then copy your picture to this drawable folder and make sure this build action of picture is AndroidResource.

    In the end, change your ImageView src like following code.

         android:contentDescription="this tab index"

    By the way, mipmap A folder used to store image resources, mainly for application icons.

    Best Regards,

    Leon Lu

    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful