首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在J2ME波兰语中配置图标的大小

在J2ME波兰语中配置图标的大小
EN

Stack Overflow用户
提问于 2012-08-23 20:13:23
回答 1查看 394关注 0票数 2

如何配置图标的大小以适合多个移动设备?

基于J2ME Polish documentation,我使用以下resources文件夹结构:

代码语言:javascript
复制
IconSize.15x15\icon.png
IconSize.16x16\icon.png
...

但这不起作用,我在几个移动设备上尝试过,它们都加载了默认的J2ME波兰语图标。

这是我的build.xml文件:

代码语言:javascript
复制
<?xml version="1.0" encoding="UTF-8"?>
<project name="myProject" default="j2mepolish">
    <property name="polish.home" location="C:\Program Files (x86)\J2ME-Polish" />
    <property name="wtk.home" location="C:\JavaME_SDK" />
    <taskdef
        name="j2mepolish"
        classname="de.enough.polish.ant.PolishTask"
        classpath="${polish.home}/lib/enough-j2mepolish-build.jar"
    />
    <target name="run">
        <j2mepolish>
            <info
                name="My Project"
                version="1.0.0"
                description="My Project"
                vendorName="Diogo"
                jarName="myProject.jar"
            />
            <deviceRequirements>
                <requirement name="Term" value="polish.api.wmapi" />
                <requirement name="Identifier" value="Generic/AnyPhone" />
            </deviceRequirements>
            <build
                usePolishGui="true">
                <libraries>
                        <library file="lib/json-1.0.jar" />
                </libraries>
                <midlet class="myProject" />
                <resources
                    dir="resources/"
                    defaultexcludes="yes"
                    excludes="readme.txt" >
                    <root dir="resources/" includeSubDirs="true" includeBaseDir="true" />
                </resources>
                <variables>
                    <variable name="polish.usePolishTitle" value="true" />
                    <variable name="polish.TextField.suppressCommands" value="true" />
                    <variable name="polish.TextField.useDirectInput" value="true" />
                    <variable name="polish.TextField.showInputInfo" value="false" />
                </variables>
                <obfuscator name="ProGuard"></obfuscator>
                <postcompiler name="java5" />
            </build>
            <emulator />
        </j2mepolish>
    </target>
    <target name="clean">
        <delete dir="build" />
        <delete dir="dist" />
    </target>
</project>
EN

回答 1

Stack Overflow用户

发布于 2012-08-24 20:33:57

Java ME应用程序图标定义在Jad和Manifest键上。它通常在MIDlet-IconMIDlet-1的第二个值中被告知。请看另一个关于它的问题add icon to j2me application。也可以查看关于图标大小Is there a standard icon size and color depth for J2ME?的其他问题。

在您提供给http://www.enough.de/products/j2me-polish/documentation/building/resource-handling/resource-assembling.html的链接上有这样的文本:“您可以使用图标大小0x0为具有未知IconSize功能的设备存储图标资源”。

我建议你,根据我个人使用图标的经验--而不是抛光--在这个文件夹中添加一个32x32的png图标图像。

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

https://stackoverflow.com/questions/12091331

复制
相关文章

相似问题

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