Why does text_size_body have different sizes in the AppCompat library and Android Lollipop?

v21 \ values.xml

<style name="TextAppearance.Material.Body1">
        <item name="textSize">@dimen/text_size_body_1_material</item>
</style>

Text size

<dimen name="text_size_body_1_material">14sp</dimen>

values ​​\ values.xml

<style name="Base.TextAppearance.AppCompat.Body1">
        <item name="android:textSize">@dimen/abc_text_size_body_1_material</item>
</style>

Text size

<dimen name="abc_text_size_body_1_material">16sp</dimen>

Question: why Google defines different sizes for text_size_bodythe AppCompat and Android Lollipop libraries.

PS other sizes seem the same.

+4
source share
2 answers

Android usually starts by looking at the folder , xml ( values ​​/dimens.xml). "" v21, , Android v21+. Android (v21 + vs v20 -).

. Android

+2

, abc_ prefixed ActionBarCompat. ActionBar.

0

Source: https://habr.com/ru/post/1568858/


All Articles