Asked 30+ days ago
24 Feb 2017
Views 221

sachin posted

what is View in Android ?

what is View in Android ? what is ViewGroup in Android ? what is difference between View and ViewGroup in Android ?
Mitul Dabhi

Mitul Dabhi
answered Jan 22 '18 20:17

A view is parent class of every UI Elements.

ViewGroup is container which contain group of views. it is base class for layouts and other containers.

ViewGroup is subclass of View.other Layouts is subclass of ViewGroup

View --> ViewGroup -->Layouts(Linear Layout , Relative Layout , Frame Layout , Table Layout )

Edit Answer
Post Answer