android - How create loading effect to fragment? -


i need display loading indeterminate progress bar while receiving data in fragment. how can this? tried use sample code, didn't worked me expected.

enter image description here

define interface having method called dopostexecute() in data retrieving class in asyncclass, call dopostexecute() method when data being retrieved.

now implement interface in fragment , run progress bar till call occurs


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -