问题
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.
How can I create this type of loading screen?
回答1:
@Ganpat Kaliya
Please check Transparent progress dialog on Android
Just set
setTitle(Loading...);
回答2:
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.
来源:https://stackoverflow.com/questions/32439145/how-to-create-loading-screen-in-android