I have an Activity with this structure:
FrameLayout ProgressBar ViewStub
ViewStub inflates a fragment in a separate stream. I need to display progress during fragment loading. The problem is that the ProgressBar does not rotate while the stub is inflating (in my case about half a second: this is a heavy fragment) I tried everything: showing / hiding the view, invalid showing them in ViewSwitchers ... etc., Nothing doesn't work, as soon as the ViewStub swells up, it starts spinning, it, like u, freezes up when it swells up, but does it in another thread, it doesn't seem to improve. What should I do?
android android-progressbar viewstub
Mariusbudin
source share