LinearLayout 的方法 -- getVirtualChildCount() 只是返回方法 ViewGroup 的 getChildCount(),注意:如果布局可以包含虚拟子项,则此数字可能与实际子项数不同。那么什么是“虚拟 child ”呢
最佳答案
它们被 TableRow/TableLayout 使用 according to this post :
These methods are used by TableRow/TableLayout. You don't need to worry about them, they are only meant for internal use.
关于android - LinearLayout源码中子虚数是什么意思,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32773619/