Sencha touch 2 如何在Sencha Touch 2上设置从右到左的过渡动画?

Sencha touch 2 如何在Sencha Touch 2上设置从右到左的过渡动画?,sencha-touch-2,Sencha Touch 2,我想在面板上激活卡时设置过渡动画。有什么想法吗 main.setActiveItem(1)正在更改卡,但我想设置从右到左的转换动画(不是默认的从左到右) 我有这个功能: buttonBackImageDetalle: function(button, e, options) { var main = this.getMain(); //Ext.fx.Animation.setDirection('right'); main.setActiveItem(1); c

我想在面板上激活卡时设置过渡动画。有什么想法吗

main.setActiveItem(1)正在更改卡,但我想设置从右到左的转换动画(不是默认的从左到右)

我有这个功能:

buttonBackImageDetalle: function(button, e, options) {

    var main = this.getMain();
    //Ext.fx.Animation.setDirection('right');
    main.setActiveItem(1);
    console.log('<-- back');

}
buttonBackImageDetalle:功能(按钮、e、选项){
var main=this.getMain();
//Ext.fx.Animation.setDirection(“右”);
main.setActiveItem(1);
console.log('尝试以下操作:


main.animateActiveItem(1,{type:'slide',direction:'right'})

Hi如果您使用的是控制器,请使用ref作为main和pass xtype视图,如下所示

this.getMain().animateActiveItem(your_xtype, {type: 'slide', direction: 'right'});

这对我不起作用。我不传递索引,而是传递对象本身