Hi, is there a simple way to add spinning progress bar in all activities/fragments for sometime. I'm not a fan of adding progress bar in all layout files. any suggestions? anything different you tried.
05/23/2017, 12:45 PM
audhil: Hi, this is a Slack chat for Kotlin. You may want to try something like StackOverflow, /r/androiddev's questions thread, or google.
05/23/2017, 12:46 PM
ok, BTW, I'm big fan of kotlin too🙂
05/23/2017, 12:52 PM
To answer your question, you could make a base fragment/activity and a 'base layout' with a spinner, then add/inflate the subclass's layout into your base layout with the spinner.
But honestly I don't know what you'd want to do this, and I can only see it causing problems - trying to use a generic solution for adding a spinner might end up causing some problems later on.
imo you're better off adding the spinner to each screen where you need it, and create/use a reusable component to minimize the amount of logic needed in each screen
05/23/2017, 12:55 PM
thats what am doing right now, being lazy, I don't want to add it in all layouts. ll figure out other possibility and share with you.