简体   繁体   中英

How to replace decorView in Android?

As it knows, we can get Android top-hierarhy Views via Activity.getWindow().getDecorView() and Activity.findViewById(android.R.id.content) .

Is it possible to replace the standard set of custom Views?

I don't know what you want to do, but I think you can find your answer if you know more about the android view hierarchy. The following two documents may be helpful:

1, You can use the Hierarchy Viewer to analyse your view hierarchy:
http://developer.android.com/tools/debugging/debugging-ui.html

2, The following blog is related to the android view hierarchy:
http://www.curious-creature.org/category/android/page/2/

除非您有权访问框架代码,否则没有办法。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM