Skip to content

为什么BindingAdapter里面的findView没有用到缓存? #490

@poplrz2

Description

@poplrz2

/**

  • 查找ItemView上的视图
    */
    fun <V : View?> findView(@idres id: Int): V = itemView.findViewById(id)

源码内 BindingViewHolder 这行代码里面是不是可以通过缓存,来解决每次都要遍历view树去查找更耗资源的问题?

Metadata

Metadata

Assignees

No one assigned

    Labels

    提议New feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions