在 Sencha Touch 2 中显示加载程序而不阻塞用户

Posted

技术标签:

【中文标题】在 Sencha Touch 2 中显示加载程序而不阻塞用户【英文标题】:Show loader without blocking the user in Sencha Touch 2 【发布时间】:2015-02-13 05:20:43 【问题描述】:

在我的 Sencha Touch 应用程序中,我想显示加载器,但我不想阻止用户与应用程序交互。是否可以设置一些标志来完成此操作。我正在使用此命令显示加载程序-

Ext.Viewport.setMasked(
        xtype: 'loadmask',
        indicator: true,
        message: ''
    );

【问题讨论】:

【参考方案1】:

Touch/Ext 中的标准加载掩码旨在防止用户在加载时进行交互,因此无法配置为其他行为。

您可以在屏幕上的某处显示微调器图标而不会阻止用户访问,但它不能是标准的加载掩码。

【讨论】:

以上是关于在 Sencha Touch 2 中显示加载程序而不阻塞用户的主要内容,如果未能解决你的问题,请参考以下文章

PhoneGap & Sencha Touch 2 载入画面

Sencha touch 2 原生构建未加载

Sencha Touch 应用程序在浏览器中显示为空白

无法在 Sencha-Touch2 中使用 Ext.Ajax 运行 javascript?

Sencha Touch 2 - Iphone 应用程序 - 空白屏幕

在 Sencha Touch 2 中使用不同的代理存储动态定义和加载视图