代码中使用List viewContainter = new List();报如下错误:
Cannot instantiate the type List:即不能实例化List类型的对象。
查看java API(http://tool.oschina.net/apidocs/apidoc?api=jdk_7u4)得知List为接口:Interface List;
接口不能实例化,故不能直接使用new List进行实例化;需要使用任意一个实现该接口的类进行实例化,比如(ArrayList)
修正为List viewContainter = new ArrayList()即可。