Fixed resizing issue by inflating a parent view group and laying out properly