Asked 7 years ago
24 Feb 2017
Views 1209
sachin

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 Nov 30 '-1 00:00

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 )

Post Answer