Via*_*nko 5 android textview material-components-android
我知道 TextView 和 AppCompatTextView 之间的区别。但是 TextView 和 MaterialTextView 呢?有哪些细微差别?那么什么时候我们需要使用MaterialTextView呢?
Muh*_*lid 9
根据这里的官方文档
MaterialTextView 支持可针对 AppCompatTextView 更改的所有标准属性。与仅支持在视图布局 XML 中指定行高的 AppCompatTextView 不同,MaterialTextView 支持从 TextAppearance 样式读取行高的功能,可以使用 style 属性或使用 android:textAppearance 属性将其应用于 MaterialTextView
。
归档时间:
3 年,10 月 前
查看次数:
4144 次
最近记录: