generated xml for resize and center