Kaopiz / KProgressHUD

An implement of ProgressHUD for Android, similar to MBProgressHUD, SVProgressHUD for iOS.
Apache License 2.0
1.65k stars 382 forks source link

How do I know if the Dialog showing? #10

Closed Null-Ouwenjie closed 8 years ago

Null-Ouwenjie commented 8 years ago

aha.. will you add progress.isShowing() in next version ?

tuanna-hsp commented 8 years ago

Thank for your feedback :+1: That definitely a big mistake, i will add it soon :)

fukemy commented 4 years ago

hi, 4 years since you said adding new funtion?

tuanna-hsp commented 4 years ago

Yeah I have already did it in 1bd8dc8

fukemy commented 4 years ago

sorry i just see your lib is no longer maintained for long times, then have a silly question above. I just want to ask you about show hud based on application. That mean i have some function in application that need to show hud, can you provide me some way to did it? Thanks

tuanna-hsp commented 4 years ago

@fukemy There is guide on how to install the library and some examples in the README. You could take a look. https://github.com/Kaopiz/KProgressHUD/blob/master/README.md

fukemy commented 4 years ago

i used your library for 2 projects 👍 ( about 1 years since first time i see your lib). But now my project require some problems, all i need is show hud in application class, not activity. I now your lib is display hud based on activityContext, not applicationContext. It's hard to me, because get top activity from Application class function is almost deprecated

tuanna-hsp commented 4 years ago

@fukemy Unfortunately our implementation uses a customized Dialog to display the hub. Since Dialog can only be created from Activity context, it is not possible to use Application context.

fukemy commented 4 years ago

ok tks, solved by registerLifecircleCallback in application then save current activity for work with dialog