Its similar to the Launcher Background effect, when user switch between fragments, the background will scroll within specific ratio to cover all fragments.
An example android application to set dynamic span size on GridLayoutManager
, RecyclerView
.