Of all the pieces of the Android system, views are probably the most used. Views are the core building block on which almost every piece of the UI is built. They are versatile and, as such, are used as the foundation for widgets. In this chapter, you learn how to use and how to create your own view.
A view is a rather generic term for just about anything that is used in the UI and that has a specific task. Adding something as simple as a button is adding a view. Some widgets, including
EditText widgets, are all different views.
Looking at the following line of code, it should stand out that a button is a view:
Button btnSend = (Button) findViewById(R.id.button);