Skip to content

CollectionView布局监听问题 #82

@guoyanqiu

Description

@guoyanqiu

请问,我现在使用CollectionView来进行布局,创建形如ListView的列表;但是我想根据列表中宽度最大的item的宽度来作为CollectionView的宽度,我该怎么做,设置了onLayout方法貌似没执行?
local tableView = CollectionView(tableViewData)
tableView:onLayout(function()
tableView:onLayout.adjustSize()--此处没调用
end)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions