Set proper layoutparams to view before returning from obtainView().