Hello,
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.
<ImageView
android:contentDescription="this tab index"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:src="@drawable/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.