View inflate 的参数含义
2016-11-25 本文已影响73人
RoboyCore
[inflater.inflate(R.layout.fragment_my_fragment2, container,false);
1.第二个parent是否有父类,如果有使用parent的LayoutParam,并加载子类view到父类中,
否则使用自己的参数并替代父类View,
布尔值是否依附在Root中。
[inflater.inflate(R.layout.fragment_my_fragment2, container,false);
1.第二个parent是否有父类,如果有使用parent的LayoutParam,并加载子类view到父类中,
否则使用自己的参数并替代父类View,
布尔值是否依附在Root中。