0
想問一問。有什麼區別:充氣觀點差異
LayoutInflater layoutInflater = (LayoutInflater) getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
和:
LayoutInflater layoutInflater = LayoutInflater.from(this);
?
沒有區別,檢查'from'源代碼 – Selvin
@Selvin,你能和我一起分享嗎? –
什麼? Android是開源的,可以輕鬆找到它。 – Selvin