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