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

Feat:求xml+dataBinding布局 #2

Open
GengJian opened this issue Aug 15, 2022 · 0 comments
Open

Feat:求xml+dataBinding布局 #2

GengJian opened this issue Aug 15, 2022 · 0 comments

Comments

@GengJian
Copy link

Selector的思路挺牛逼的, 整个demo反复看了三遍,感觉有个不太友好的地方;

  1. demo中创建流式布局之后纯代码动态添加控件的地方如果是单纯的textView还行,复杂的ConstraintLayout这种就很难受
  2. Layout.kt里扩展了一堆同名方法addView,容易和系统的类名混淆不易阅读
  3. 大佬如果能将Selector中引入contentView的入参改为传入xml的databinding就好了
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