Thanks for the reply, I managed to figure out how to implement the layout but ended up not using it. I realized that a custom layout was not the best solution to my problem