Skip to content

Types接口是否支持oneToMany注册Type? #319

Description

@chenfei0928

Types接口允许根据Type接口直接注册类型与其ViewBinder,但Type接口的定义中允许设置一个linker来支持oneToMany的一数据类型对应多个ViewBinder的场景
但MultiTypeAdapter的registerAll方法实现中,在对添加到Types中的每一个Type的处理时,会先将在此之前注册的该数据类型的Type移除,这过程中可能也会移除在Types中OneToMany的Type

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