7
我的问题是创建LayoutInflater
实例的最佳方式是什么?有高效创建LayoutInflater
LayoutInflater inflater = LayoutInflater.from(context);
和
LayoutInflater inflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);
哪个是更好的解决方案有什么区别?其他解决方案也很受欢迎。
谢谢。
所以第二个解决方案应该比第一个解决方案有效。 – 2012-08-13 13:05:14
对。谢谢。 – overbet13 2012-08-13 13:10:28