Skip to content

内容显示不完整 #25

Description

@WuMingZhiBel

当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);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions