鼠标右键选中要include的文件refactor--Extract--layout--填写新的布局名即可,在需要引用它的地方直接 <include layout="@layout/no_data" />