Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有什么方法可以覆盖默认 layoutInflater 以便能够根据我的意愿动态创建布局,同时从数据库中获取 XML 结构的数据?
赫米扎克
您可以使用LayoutInflater.setFactory()和LayoutInflater.setFilter()方法。