Difference between TextView and MaterialTextView?
Asked Answered
K

1

6

I know about difference between TextView and AppCompatTextView. But what about TextView and MaterialTextView? What are the nuances? And when we need to use MaterialTextView?

Karykaryl answered 2/2, 2022 at 8:52 Comment(0)
F
9

According to the official documentation here

MaterialTextView supports all of the standard attributes that can be changed for an AppCompatTextView. Unlike the AppCompatTextView which supports specifying the line height only in a view layout XML, MaterialTextView supports the ability to read the line height from a TextAppearance style, which can be applied to the MaterialTextView either using the style attribute or using the android:textAppearance attribute

.

Firkin answered 2/2, 2022 at 8:58 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.