Skip to content

关于onLayout中对子View计算的疑问 #17

@darkwh

Description

@darkwh

if (child == mBehindView) {
top = b + offset;
bottom = top + b - t;

        }
        else {
        //此处为什么要给一个t而不是0呢
         top = t + offset;
         bottom = b + offset;

        }

我集成到我的项目中发现顶部有一个空白区域,空白区域的高度就是t的值,对于这里不是很明白,希望能得到作者的解答~~~

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