Creating custom view only in xml vs xml + java



I'm creating custom View in XML and then inflating it into other views (listView for example) and everything works fine but later I noticed all guides for creating a custom View include java code (example: http://ift.tt/11Ajwb2) so my question is: what's the difference? do I must make the code? how will it benefit?


No comments:

Post a Comment