How to Create a Flexible Layout File