android 关于layoutinflater 中的root 和 attach to root的研究
accepted
To help with layout issues, the?hierarchy viewer?is highly recommended.
1 楼 pgy20032000 2011-11-01 要点在于 inflate方法中的viewGroup若为null,则inflate出来的view会丢失其属性,所以通常会放入viewgroup,但是attachToRoot属性设为false