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)?
Calling them either is fine.
I tend to use the term "widget" for subclasses of View
that have a visual representation to the user by default -- things like TextView
, Button
, ListView
, etc.
I tend to use the term "view" for something that could be any subclass of View
, including pure containers like LinearLayout
.
But, again, there is no particular harm in referring to them by either term.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With