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

一点改进建议 #8

Closed
mzeht opened this issue Jul 5, 2017 · 3 comments
Closed

一点改进建议 #8

mzeht opened this issue Jul 5, 2017 · 3 comments

Comments

@mzeht
Copy link

mzeht commented Jul 5, 2017

根据mContentView = findViewById(R.id.content_view);去设置内容视图有点不便,用起来还得把内嵌视图最外层命名为content_view,繁琐切容易重复,可以考虑内嵌视图只支持一个子视图,然后mContentView = this.getChildAt(0);去处理

@qyxxjd
Copy link
Owner

qyxxjd commented Jul 5, 2017

如果有多个子内容视图,就不能使用 getChildAt(0) 来处理,这两天空了我优化一下

@mzeht
Copy link
Author

mzeht commented Jul 6, 2017

只支持一个子视图应该是比较好的 没用这个多布局项目的直接把布局粘到内部就好了 不用还写id content_view

@qyxxjd
Copy link
Owner

qyxxjd commented Jul 7, 2017

请参考: MultipleStatusView v1.3

@qyxxjd qyxxjd closed this as completed Jul 7, 2017
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

2 participants