2011-05-18 52 views
1
[WARN] For your density-specific images 

(机器人/图像/高|介质|低|水库*) 是有效的,就应该把一个 元件与 anyDensity在 tiapp.xml的 部分或自定义 的AndroidManifest.xml我在哪里应该添加<支持屏> Android中tiapp.xml

我得到了我的模拟器此警告=“真”。 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> 

回答

2

林不知道你是显示什么文件,但支持屏值使用清单文件设置;哪(我相信)需要被称为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的清单文件吗?

+0

不是真的,它似乎是一种称为http://developer.appcelerator.com/这似乎是某种多平台开发环境 – Durza007 2011-05-18 14:38:15

+0

谢谢,想知道我是否会疯了... – 2011-05-18 14:56:01

相关问题