Note that the progress indicator won't we shown if your data is loaded in less than 500 ms. This is an expected behavior: similarly to ContentLoadingProgressBar, the progress indicator is only shown if it will be displayed a sufficient amount of time to avoid UI "flashes".

Using a custom layout

You may need to customize the layout of RecyclerFragment. All you have to do is to override onCreateView and inflate your custom view hierarchy. Howether, your layout has to meet the following criterias:

It must contain a RecyclerView with id @id/recycler

It must contain any View with id @id/progress to be displayed when the RecyclerView is hidden by setRecyclerShown(false).

You may optionally specify a View to be automatically displayed in place of the RecyclerView when the adapter is empty: just mark it with the id @id/empty.