如何调取其他 layout 的 view

来源:互联网 发布:诊所处方软件 编辑:程序博客网 时间:2024/06/06 03:26

1,LayoutInflater layoutInflater = LayoutInflater.from(context);

2,LayoutInflater layoutInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE);  

3,layoutInflater.inflate(resourceId, root);  

可以调取其他 layout 的 view。

0 0