If I am not wrong, View is the superclass for all widgets, but how do I differentiate between a View and a widget? For example, a button or a text box, what should I call them (a View or a widget)?
If I am not wrong, View is the superclass for all widgets, but how
Share
Calling them either is fine.
I tend to use the term “widget” for subclasses of
Viewthat have a visual representation to the user by default — things likeTextView,Button,ListView, etc.I tend to use the term “view” for something that could be any subclass of
View, including pure containers likeLinearLayout.But, again, there is no particular harm in referring to them by either term.