摘要:
首先,有View。inflate()和Layoutinflater。inflate()两个方法,但看一下源码就知道其实是一种: public static View inflate(Context context, int resource, ViewGroup root) { LayoutInflater factory = LayoutInflater.from(context); return factory.inflate(resource, root); }再者,获取LayoutInflater对象的方法,不止上面写的LayoutInflater.f... 阅读全文