merge your code and add InjectViews for array or list view

merge your code and add InjectViews for array or list view