首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在Android tiapp.xml中我应该在哪里添加<supports>

在Android tiapp.xml中我应该在哪里添加<supports>
EN

Stack Overflow用户
提问于 2011-05-18 13:50:14
回答 1查看 1.8K关注 0票数 1

针对特定密度图像的

警告

(android/映像/高收中、中、低、低、高、中、低、低、高、低、低、高)要有效,你应该在你的tiapp.xml的部分或自定义的AndroidManifest.xml中放一个带有tiapp.xml“true”的元素

我在仿真器中得到了这个警告。Now where do i add <supports-screens> in my tiapp.xml

代码语言:javascript
复制
<?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>
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2011-05-18 14:10:26

我不确定您显示的是哪个文件,但是支持屏幕值是使用清单文件设置的;需要将其命名为AndroidManifest.xml。

以下是详细信息:http://developer.android.com/guide/topics/manifest/supports-screens-element.html

清单文件通常如下所示:

代码语言:javascript
复制
<?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的清单文件吗?

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/6045818

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档