Inflate custom view in fragment

Viewed 2333

I need to implement custom view in Fragment. So far I have accomplished to extend View class to draw on canvas and set it to activity following google example.

I would like to draw on canvas in fragment and problem is that I do not know how to inflate the view, because it is object but not xml file.

 return inflater.inflate(R.layout.article_view, container, false);

Can somebody help me to understand and solve this problem?

Thanks

1 Answers
Related