Add view attributes from XML

Allow the developer to parametrize the view directly from the XML