Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
chenfei0928 opened this issue Apr 25, 2021 · 0 comments
Open

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

chenfei0928 opened this issue Apr 25, 2021 · 0 comments

Comments

@chenfei0928
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant