Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

“正在加载”提示的样式 #54

Open
XinHuaLuFang opened this issue Jan 21, 2015 · 1 comment
Open

“正在加载”提示的样式 #54

XinHuaLuFang opened this issue Jan 21, 2015 · 1 comment

Comments

@XinHuaLuFang
Copy link

mui里面用的是雪花样式,但是大部分APP都是一个圈圈在转,这个如何实现?

@baiej214
Copy link

给你我写的

    progressDialog: function (params) {
        var dialog = plus.android.newObject('android.app.ProgressDialog', plus.android.runtimeMainActivity());
        plus.android.invoke(dialog, 'setTitle', params.title);
        plus.android.invoke(dialog, 'setMessage', params.message);
        plus.android.invoke(dialog, 'setCancelable', false);
        return {
            show: function () {
                plus.android.invoke(dialog, 'show');
                return this;
            },
            close: function () {
                plus.android.invoke(dialog, 'dismiss');
            },
            setMessage: function (text) {
                plus.android.invoke(dialog, 'setMessage', text);
            }
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants