0
想问一问。有什么区别:充气观点差异
LayoutInflater layoutInflater = (LayoutInflater) getBaseContext().getSystemService(Context.LAYOUT_INFLATER_SERVICE);
和:
LayoutInflater layoutInflater = LayoutInflater.from(this);
?
没有区别,检查'from'源代码 – Selvin
@Selvin,你能和我一起分享吗? –
什么? Android是开源的,可以轻松找到它。 – Selvin