What is the difference between view and viewgroup in android?
View is a basic building block of UI (User Interface) in android. A view is a small rectangular box which responds to user inputs. Eg: EditText, Button, CheckBox, etc..
ViewGroup is a invisible container of other views (child views) and other viewgroups. Eg: LinearLayout is a viewgroup which can contain other views in it.
ViewGroup is a special kind of view which is extended from View as its base class. ViewGroup is the base class for layouts.
all are true
Back To Top