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

createViewFromTag(context, name, attrs);什么时候知道到这个呢? #23

Open
linbin91 opened this issue Dec 13, 2016 · 2 comments

Comments

@linbin91
Copy link

public View onCreateView(View parent, String name, Context context, AttributeSet attrs){ ....... if (view == null) { Log.e("linbin","888888"); view = createViewFromTag(context, name, attrs); } } .......

这里是什么情况下view == null呢

@zouyuanfeng
Copy link

自定义view吧

@zhengshiteng
Copy link

搞不懂为什么要实现createView这个部分,应该只需要解析attrs就好了。createView还是由父类完成就好了?

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

3 participants