Attach to parent while inflating layout

Ref: http://doubleencore.com/2013/05/layout-inflation-as-intended/