Android View and View Hierarchy Introduction Part-1

 

This video shows how to use of hierarchy to improve your UI performance? View class represents the basic building block for user interface component. A view occupies a rectangular area on the screen and is responsible for drawing and event handling. The view is base class of all widgets, which are used to create interactive UI components like button, text fields, CheckBox etc. And the Subclass is the base class for all layouts which are invisible containers that hold other view and define their layout properties.
There are Three Models in Android View:
1. The View — that informs the ViewModel about the user’s actions
2. The ViewModel — exposes streams of data relevant to the View
3. The DataModel — abstracts the data source. It working with ViewModel to get and save the data.


Leave a Reply

Your email address will not be published. Required fields are marked *