How to create loading screen in android?

2019-08-08 11:12发布

I am developing an android app, in which I need a loading screen like the one given below. In this screen I want a custom progress bar and a loading text in the centre of the screen, and the background effect should be blurred. When the loading starts, the user should not be able to perform any action.

enter image description here

How can I create this type of loading screen?

2条回答
啃猪蹄的小仙女
2楼-- · 2019-08-08 11:48

@Ganpat Kaliya

Please check Transparent progress dialog on Android

Just set

setTitle(Loading...);
查看更多
干净又极端
3楼-- · 2019-08-08 11:56

I would suggest you to use the custom Progress dialog. The purpose of using progress dialog is that as you wanted the screen to be blur, so when ever you would bring Progress dialog to front the activity would get blur , additionally it is highly customize able , you can do what you want.

A very useful explanation is here and here. please check them out and apply.

查看更多
登录 后发表回答