Reputation: 11
I already searched on internet about the difference between layout and view Group in android, but i didn't found an answer for this question, can any one tell me what is the difference between them and what is view Group uses, i already know layout use
Upvotes: -1
Views: 1679
Reputation: 26
A View Group is a subclass of the View class. It is a container that holds views such as ImageView, TextView, etc. Layouts are View Groups that are defined either by an xml file, or programmatically.
Upvotes: 1
Reputation: 73753
Layout is a xml file (or programmatically created) that encompasses multiple views to create a UI.
View Group is what you use to create your layout such as LinearLayout, RelativeLayout ConstraintLayout etc. These hold child views and their positions
Upvotes: 1