Added view constructors to use in layouts.