如何设置背景图片Xamarin的Android [英] How to set background image Xamarin Android
本文介绍了如何设置背景图片Xamarin的Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想提出的背景项目Xamarin的Android ...一个简单的形象在我的项目,我可以看到图像,但我whem建立,不显示在我的应用程序..
你可以看到,我的背景图像调用hue.jpg,这是我的XML文件。
I want to put a simple image in background project Xamarin Android... in my project i can see the image,but whem i build, dont show in my App.. as you can see,my background image call hue.jpg and this 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 i'm doing wrong?
推荐答案
时使用的图像比屏幕高出很多的分辨率是多少?如果是这样的尝试缩小分辨率后再试。
Is the resolution of the image a lot higher than the screen used? If so try scaling down the resolution and try again.
这篇关于如何设置背景图片Xamarin的Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文