针对特定密度图像的
警告
(android/映像/高收中、中、低、低、高、中、低、低、高、低、低、高)要有效,你应该在你的tiapp.xml的部分或自定义的AndroidManifest.xml中放一个带有tiapp.xml“true”的元素
我在仿真器中得到了这个警告。Now where do i add <supports-screens> in my tiapp.xml
<?xml version="1.0" encoding="UTF-8"?>
<ti:app
xmlns:ti="http://ti.appcelerator.org">
<id>com.gfg.gfgfg</id>
<name>fgfgfgf</name>
<version>1.0</version>
<publisher>uuuu</publisher>
<url>http://www.uuu.com</url>
<description>No description
provided</description> <copyright>2011
by John</copyright>
<icon>default_app_logo.png</icon>
<persistent-wifi>false</persistent-wifi>
<prerendered-icon>false</prerendered-icon>
<statusbar-style>default</statusbar-style>
<statusbar-hidden>false</statusbar-hidden>
<fullscreen>false</fullscreen>
<navbar-hidden>false</navbar-hidden>
<analytics>true</analytics>
<guid>cba0a3f5-1d77-4cb2-bac0-4fb27109f48b</guid>
<iphone>
<orientations device="iphone">
<orientation>Ti.UI.PORTRAIT</orientation>
</orientations>
<orientations device="ipad">
<orientation>Ti.UI.PORTRAIT</orientation>
<orientation>Ti.UI.UPSIDE_PORTRAIT</orientation>
<orientation>Ti.UI.LANDSCAPE_LEFT</orientation>
<orientation>Ti.UI.LANDSCAPE_RIGHT</orientation>
</orientations>
</iphone>
<android xmlns:android="http://schemas.android.com/apk/res/android">
</android>
<modules></modules>
</ti:app>发布于 2011-05-18 14:10:26
我不确定您显示的是哪个文件,但是支持屏幕值是使用清单文件设置的;需要将其命名为AndroidManifest.xml。
以下是详细信息:http://developer.android.com/guide/topics/manifest/supports-screens-element.html
清单文件通常如下所示:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="dsfdsfds.dasdsa"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="8" />
<application android:icon="@drawable/icon" android:label="@string/app_name">
<activity android:name=".dsfdsfds"
android:label="@string/app_name">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
<supports-screens android:anyDensity="true" />
</manifest><supports-screens>可以放在<manifest>内部的任何地方
不过,有人能在这里支持我吗?海报XML看起来像android的清单文件吗?
https://stackoverflow.com/questions/6045818
复制相似问题