How to create loading screen in android?

只愿长相守 提交于 2019-12-24 11:28:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!