# 1.4 Views

Wait a second, it seems like XML files give us everything we need to display an application on a screen! Did we really need that code to change the `TextView` text to "Hello Friend"? Well, declaring the attributes inside the XML for a static `TextView` seems fine, but when we start to look at more complex View elements, we’ll need corresponding logic to control how these components work.

![Main Activity in Eatery](/files/-LvZTn5RLz_enwZdIZHv)

Important views, such as the ones seen above, that you’ll see used often include:

* (1) `EditText` for inputting and editing text
* (2) `Button` and other clickable elements for supporting interactive behavior
* (3) `TextView` for displaying text
* (4) `ImageView` for displaying images

In sections 2.4 and 2.5, we will go in depth into two particular views that handle user interactions: input controls and buttons.&#x20;


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://android-course.cornellappdev.com/chapters/1.-introduction-to-the-editor/1.4-views.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
