> For the complete documentation index, see [llms.txt](https://jobinjj.gitbook.io/tutorials/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jobinjj.gitbook.io/tutorials/widgets/textview.md).

# TextView

#### Layout

```
<TextView
        android:text="This is textview"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" android:id="@+id/textView" android:layout_margin="16dp"/>
```

#### Java

```
TextView textView = findViewById(R.id.textView);
textView.setText("text");
```
