如上所述,下面 是代码 showEmpty: <img width="992" height="852" alt="Image" src="https://github.com/user-attachments/assets/2bc44951-b29c-4053-af04-c72e4d8786d1" /> showError: <img width="592" height="1190" alt="Image" src="https://github.com/user-attachments/assets/bf784ad0-3ad6-4ac0-8a53-ead18dd66ad7" /> showLoading <img width="850" height="1218" alt="Image" src="https://github.com/user-attachments/assets/673f4678-daa9-4a0e-91bc-b50a049f54dd" /> 调用就是绑定某个view 去调用的, multiState = MultiStatePage.bindMultiState(mBinding!!.llTab) multiState.showEmpty() 另外在fragment中调用根布局,利用binding.root showloading Page 无法显示出来。