How to display an inline ProgressBar spinner?
I want to display a ProgressBar spinner in place of another View, while it
is loading (i.e. NOT in a dialog). To be clear, I only want the
ProgressBar to replace one View, not take over the Window or Activity.
The best solution I can think of is to place both a ProgressBar and the
actual View in the layout, with the ProgressBar visibility set to VISIBLE
and the View visibility set to GONE. After loading, I swap their
visibility.
This will work but I was hoping for a more elegant solution. Any suggestions?
No comments:
Post a Comment