获取整个Activity的layout

FrameLayout frameLayout = getWindow().getDecorView().findViewById(android.R.id.content);
原文地址:https://www.cnblogs.com/zhaozilongcjiajia/p/11320792.html