Support UIScrollView
Refactor view attribute generating method