1、獲取setContentView()後得到的View:
View contentView = ((ViewGroup) (getWindow().getDecorView().findViewById(android.R.id.content))).getChildAt(0);
2、獲取DecView:
View rootView = getWindow().getDecorView();
1、獲取setContentView()後得到的View:
View contentView = ((ViewGroup) (getWindow().getDecorView().findViewById(android.R.id.content))).getChildAt(0);
2、獲取DecView:
View rootView = getWindow().getDecorView();
01 背景介紹 在智能手機市場上,高端機型經常備受矚目,但低端機型亦佔據了不可忽視的份額。衆多廠商爲滿足低端市場的需求,不斷推出低配系列手機。另外過去幾年的中高端