English 中文(简体)
Sencha Touch - Lag at Screen transition
原标题:Sencha Touch - Lag at screen transition

Allright, I m test the Sencha Touch framework Packed in Telephonegap and prepared to a HTC Hopee with 2.2. 申请的目的只是要熟悉《框架》,并且(以)能力。

I m 采用MVC模式。 该申请包括使用代理人从json档案中装入数据储存的物品清单。 其中一个项目被点击时,显示一个详细页。

app.views.viewport.setActiveItem(app.views.placesList, options.animation);

但是,在过渡之前,有一些滞后之处,一个白色屏幕显示时间很小。 我已表明这一点:

The code below shows the structure and functionality of my application:

<><><>>>>

app.models.Place = Ext.regModel("app.models.Place", {
    fields: [
        {name: "name", type: "string"},
        {name: "location", type: "string"}
    ]
});
app.stores.places = new Ext.data.Store({
    model: "app.models.Place",
    proxy: {
        type:  ajax ,
        url :  js/app/data/products.json ,
        reader: {
            type:  json ,
            root:  products 
        }
    }
});

View

app.views.PlacesList = Ext.extend(Ext.Panel, {
    fullscreen: true,
    scroll:  vertical ,
    dockedItems: [{
        xtype:  toolbar ,
        title:  PlacesList 
    }],
    items: [{
        xtype:  list ,
        store: app.stores.places,
        itemTpl:  {name} ,     
        onItemDisclosure: function () {
            Ext.dispatch({
                controller: app.controllers.places,
                action:  show 
            });
        }
    }],
    initComponent: function() {
        app.stores.places.load();
        app.views.PlacesList.superclass.initComponent.apply(this, arguments);
    }
});

<><><><><>><>>>><>>>>>>

app.controllers.places = new Ext.Controller({
    show: function(options) {
        app.views.viewport.setActiveItem(app.views.placeDetail, options.animation);
    },
    back: function(options) {
        app.views.viewport.setActiveItem(app.views.placesList, options.animation);
    }
});

我很想知道,经验丰富的滞后是否只是Sencha Touch的,还是来自该守则。

提前感谢,

Gerard

问题回答




相关问题
Android ListView partial pressable areas

I would like to create a ListView item layout where I can touch certain portions of a line item. This is similar to the behavior of the 2.0 s Contacts Call Log where I can click on the green phone ...

Disable touch events while processing

I have a button which should not be clicked by user, when some processing is going on [shown using UIActivityIndicatorView]. For this when the processing starts i call [[UIApplication ...

How to know TabletPC is in Laptop or Tablet mode

I m writing a Touch-enable application for DELL TX2, for text input, I need to know whether the TablePC is in Laptop or Tablet mode, then change the text input mode. In Latop mode, don t call ...

box2d: bigger clickable/touchable area

I m using Box2D on my iPhone app using Cocos2D. I m using mouse joint to drag objects by touch. The touch event is handled to find the corresponding Box2D body using AABB queries. I would want to ...

touchesMoved behavior in iPhone and Simulator

The function touchesMoved behaves differently in iPhone and simulator. The repeating interval (refresh rate) of the function touchesMoved is much faster than simulator. Is there a way to deal with ...

how to get touch event on imageView of UITableViewCell?

I want to get notifications when user single tap or double tap on imageView of UITableViewCell. I have been try to add a subview to imageView, and use touchesBegan:withEvent: in subview controller, ...

get touch coordinates (in the form of 0-480 and 0-320)

i dont get how to translate the coordinates of the iphone. if i make a single touch i get the coordinate. if i make a touch and keep it and release it it shows the difference of the starting and end ...

热门标签