2012-03-23 83 views
0

我在使用纹波模拟器和黑莓模拟器时遇到了一些麻烦。涟漪仿真器,如下面的大图所示,显示了应用程序设计的样子(目前为止,我一直在开发Ripple仿真器)。接下来我尝试在黑莓模拟器上打包并启动应用程序,并在布局中崩溃,如下所示。我的问题是为什么会出现这种情况,有没有办法解决这个问题?我必须在我的config.xml文件中放置一些东西来改变它吗?布局用不同的模拟器混合使用

enter image description here

配置文件:

<?xml version="1.0" encoding="utf-8"?> 
<widget xmlns="http://www.w3.org/ns/widgets" 
     xmlns:rim="http://www.blackberry.com/ns/widgets" 
     version="2.0" 
     rim:header="RIM-Widget: rim/widget"> 

    <author>our company</author> 
    <rim:navigation mode="focus" /> 
    <name>Application1</name> 

    <description> 
    This application is having trouble displaying itself 
    </description> 
    <rim:orientation mode="portrait"/> 
    <rim:loadingScreen backgroundImage="images\background.png" 
        foregroundImage="images\foreground.png" 
        onLocalPageLoad="true"> 
     <rim:transitionEffect type="zoomIn" /> 
    </rim:loadingScreen> 

    <icon src="icons/icon.png"/> 
    <icon src="icons/icon.png" rim:hover="true"/> 
     <rim:cache maxCacheSizeTotal="2048" maxCacheSizeItem ="256" /> 
    <content src="index.htm" > 
    </content> 

    <feature id="blackberry.ui.dialog"/> 
    <feature id="webworks.notification" /> 

    <rim:connection timeout="25000"> 
    <id>TCP_WIFI</id> 
    <id>MDS</id> 
    <id>BIS-B</id> 
    <id>TCP_CELLULAR</id> 
    <id>WAP2</id> 
    <id>WAP</id> 
    </rim:connection> 
</widget> 

感谢任何帮助!

回答

0

发生此问题是因为黑莓模拟器的不同分辨率,如黑莓strom 9550屏幕分辨率为340x480和黑莓粗体9700的屏幕分辨率为480x340。

我们只能使用编码来解决这个布局问题。使用%比率而不是使用任何像素值。

+0

这就是我目前正在做的,不明白为什么它这样做 – user1152440 2012-03-27 19:42:58

相关问题