AutoFlowLayout
AutoFlowLayout copied to clipboard
内容显示不完整
当item内容有超过一行的时候,会显示不完整,修复方法如下:源码392行 /** * 如果不需要换行,则累加 */ lineWidth += childWidth + lp.leftMargin + lp.rightMargin; //注释该该代码 //lineHeight = Math.max(lineHeight, childHeight + lp.topMargin // + lp.bottomMargin); //修复超过两行显示不完整,如果使用最大的item的高度,那么下面的item的高度也就是最大的,会造成显示不完整 lineHeight = childHeight + lp.topMargin + lp.bottomMargin; lineViews.add(child);