Android Progressbar Makes App To Work Slower
I am making to show progressbar on postexecute and to be not visible in postExecute, and it works, but makes the app to work very slow, what is the reason is there any simple way
Solution 1:
Are you using a custom progress bar and are you showing the progress bar at the initial screen of your application?
If you are using a custom progress bar then it might take some time to load during the initial startup of your app. I had a similar issue and the issue was due to the android:type="sweep" in the custom progress bar. EG: below
<shape><gradientandroid:startColor="#000001"android:centerColor="#ffffff"android:centerY="0.5"android:type="sweep"/></shape>
Not sure why the type="sweep" could cause the issue but, after removing it, the application seemed to start up pretty quick
Post a Comment for "Android Progressbar Makes App To Work Slower"