C# – how to set the background image xamarin Android

I want to put a simple image in the background project xamarin Android... In my project, I can see the image, but I build it. Don't display it in my application

As you can see, my background picture calls hue.jpg, which is my XML file

<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
android:minWidth="25px"
android:minHeight="25px"
android:background="@drawable/hue" />

So... What did I do wrong?

resolvent:

Is the resolution of the image much higher than the screen used? If so, try reducing the resolution and try again

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>