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

How can i use theread sleep with statefullayout? #7

Closed
hsmnzaydn opened this issue Aug 17, 2017 · 2 comments
Closed

How can i use theread sleep with statefullayout? #7

hsmnzaydn opened this issue Aug 17, 2017 · 2 comments

Comments

@hsmnzaydn
Copy link

hsmnzaydn commented Aug 17, 2017

Hi,
I want show showLoading throughout 5000 ms.How can i?

@gturedi
Copy link
Owner

gturedi commented Aug 18, 2017

there is no direct support for it but you can use handler like below:

stateful.showLoading();
stateful.postDelayed(new Runnable() {
            @Override
            public void run() {
                stateful. showContent();
            }
        }, 5000);

@hsmnzaydn
Copy link
Author

Oh, thanks

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