[Solved] Android ImageButton display error


Sometimes, keeping the resource or image in your case in Drawable folder doesn’t get added to ItemGroup/resource group.

You can simply open the .csproj file of your project and validate that if the image name is present in the < ItemGroup > section.. it must be like below if your image name and extension is panicbtn2.png:

<AndroidResource Include="Resources\drawable\panicbtn2.png" />

If it’s not present there, then you can add the same there or you can right click the drawable folder and choose add files and simply add the file again through IDE/Visual Studio. That might help.

1

solved Android ImageButton display error