LayoutInflater.inflate(int resource, ViewGroup root, boolean attachToRoot)之attachToRoot参数详解
当我们想将一个xml布局转化成view时,一般用到LayoutInflater.inflate方法,这个方法的重载有如下四种形式:1.publicViewinflate(intresource,ViewGrouproot)2.publicViewinflate(intresource,ViewGrouproot,booleanattachToRoot)3.publicViewinflate(Xml