我应该在Android tiapp.xml </supports-screens>中添加<supports-screens>

时间:2011-05-18 13:50:15

标签: java android

[WARN] For your density-specific images
     

(机器人/图像/高|介质|低|水库*)   要有效,你应该放一个    元素   anyDensity =“true”中的    你的部分   tiapp.xml或自定义   的AndroidManifest.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>

1 个答案:

答案 0 :(得分:2)

我不确定您要显示的是哪个文件但是使用清单文件设置了supports-screens值;其中(我相信)需要被称为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的清单文件吗?