title: How to implement progressBar while loading data?
body: <p>I want to implement progressBar like on the picture below.</p>
  
  <p>Right now, I have AsyncTask whic is sperated from fragments classes, and I use that AsyncTask to load data, and right now I have implement progressBar dialog, but I want to get rid of that, because I want make a better UX.</p>
  
  <p>I show that ProgressBar dialog in onPreExecute() method, and then dismiss it onPostExecute.</p>
  
  <p>So, how I can implement background Progress bar like on the picture below</p>
  
  <p><img src="https://i.stack.imgur.com/pKXqG.jpg" alt="enter image description here"></p>