pedrovgs/Renderers

Support for LayoutContainer

开放

#46 创建于 2018年5月13日

 (11 条评论) (0 个反应) (0 位负责人)Java (174 个派生)batch import
enhancementhelp wanted

仓库指标

星标
 (1,204 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

As it turns out, Kotlin synthetic properties cache works by default on Activities, Fragments, and Views, but it does not do so for ViewHolder. They fixed this as of Kotlin 1.1.4 via LayoutContainer.

Consumers of this libraries have to make sure they make their Renderers implement LayoutContainer if they are using synthetic properties inside of them. If they do not, their ViewHolders are going to call findViewById() on every call to render() making their ViewHolders obsolete. It would be nice if the library itself did this maybe by adding a Kotlin specific artifact that implements this interface (implementation should be trivial). Thoughts?

贡献者指南