請問一下那種方法比較好???
在自定義Toast是有種方法將layout布局轉化為View對象
(一)
LayouInflater inflater = LayoutInflater。from(this);
View view = inflater.inflate(R.layout.xxx , null);
(二)
View view = View.inflate(this, R.layout.xxx , null);
請問一下那種方法比較好???
在自定義Toast是有種方法將layout布局轉化為View對象
(一)
LayouInflater inflater = LayoutInflater。from(this);
View view = inflater.inflate(R.layout.xxx , null);
(二)
View view = View.inflate(this, R.layout.xxx , null);
請問一下那種方法比較好???
2015-07-29
舉報
2016-08-22
學到了,謝謝,都行,不過我覺得第一個比較好理解,第二個比較簡潔,你說是嗎
2015-12-20
請教一下,這兩個方法有區別嗎?