简体   繁体   English

Eclipse模拟器未运行最新版本的android应用

[英]Eclipse emulator isn't running up to date version of android app

I'm using eclipse, and my app is at a point where there is a background, and when I run the emulator it doesn't have the background. 我正在使用eclipse,并且我的应用程序处于有背景的位置,并且当我运行模拟器时它没有背景。 It had done this before where I changed some text, but when I ran the emulator the text stayed the same. 它是在我更改一些文本之前完成的,但是当我运行模拟器时,文本保持不变。 If someone could tell me what I am doing wrong then that would be great. 如果有人可以告诉我我在做什么错,那太好了。 Thanks. 谢谢。

我注意到对xml文件所做的更改有时不会显示,除非您执行Project> Clean ...

i tried the layout it works fine. 我尝试了布局,效果很好。 You create a folder named as drawable similar to drawable-hdpi. 您创建一个名为drawable的文件夹,类似于drawable-hdpi。 Put your image inside the drawable folder. 将图像放入可绘制文件夹中。 It work fine. 工作正常。

or 要么

Blockquote 块引用

Another option about the problem is that you created you Emulator in such a way that the Android OS determines its screen as xhdpi. 关于该问题的另一种选择是,您以Android操作系统将其屏幕确定为xhdpi的方式创建了模拟器。 If an image is placed in drawable resource folder then Android will try to rescale it for the different resolutions. 如果将图像放置在可绘制资源文件夹中,则Android将尝试针对不同的分辨率重新缩放图像。 However if the image appears only in some of the resolution folders (lie drawable-ldpi etc) then the image will be served only in this resolutions. 但是,如果图像仅出现在某些分辨率文件夹(例如drawable-ldpi等)中,则仅以该分辨率提供图像。

Please, either create folder drawable-xhdpi and place the image also there, or create folder drawable and place the image there. 请创建文件夹drawable-xhdpi并将图像放置在此处,或者创建文件夹drawable并将图像放置在此处。 It will be used for backup. 它将用于备份。

See the documentation about the image folders: http://developer.android.com/guide/practices/screens_support.html 请参阅有关图像文件夹的文档: http : //developer.android.com/guide/practices/screens_support.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM