<!-- layout_to_load.xml --> <LinearLayout ... > <!-- Your layout elements here --> </LinearLayout> AsyncLayoutInflater inflater = new AsyncLayoutInflater(this); inflater.inflate(R.layout.layout_to_load, null, (view, resid, parent) -> { setContentView(view); });


上一篇:
下一篇:
切换中文