Skip to content

Commit d697340

Browse files
gabrielemariottidsn5ft
authored andcommitted
Updated MaterialTextView's documentation with the right package name of the component.
Resolves #541 GIT_ORIGIN_REV_ID=c9d1e674187c3fe23b7f209cbbbc8008e348592b PiperOrigin-RevId: 266214327
1 parent cfeecaa commit d697340

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

docs/components/MaterialTextView.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,18 @@ reference.
2727
xmlns:android="http://schemas.android.com/apk/res/android"
2828
android:layout_width="match_parent"
2929
android:layout_height="match_parent">
30-
<MaterialTextView
30+
<TextView
3131
android:id="@+id/text_view_id"
3232
android:layout_height="wrap_content"
3333
android:layout_width="wrap_content"
3434
android:text="@string/hello" />
3535
</LinearLayout>
3636
```
3737

38+
Note: If you use our full themes (which we recommend), `TextView` will
39+
auto-inflate to `MaterialTextView`, otherwise, you will need to specify
40+
`<com.google.android.material.textview` in your xml.
41+
3842
### Attributes
3943

4044
`MaterialTextView` supports all of the standard attributes that can be changed

0 commit comments

Comments
 (0)