How to fill the gap with the repeated content of a fragment

How to fill the gap with the repeated content of a fragment?