Recyclerview Endless Scroll Progress bar

I have implemented Endless Scroll in my app with this famous android endless scroll library and it's working but then when i want to add a progress bar at the bottom so that when i the app is loading more data, the progress bar will. when it is done, the progress bar will hide and the new data will be shown. I have no idea how to start it. Any help will be appreciated. Thanks