layout changes for multiple resources in activities