Adding layout and child gravity attributes