0
android:textAppearance="@android:style/TextAppearance.Small"
android:textAppearance="?android:textAppearanceSmall"

Both are giving the same result. Is there any difference in there compilation efficiency.

Vadim Kotov
  • 8,084
  • 8
  • 48
  • 62
user3738332
  • 41
  • 10
  • Possible duplicate of [Question mark (?) in XML attributes for Android](https://stackoverflow.com/questions/2733907/question-mark-in-xml-attributes-for-android) – alijandro Sep 07 '17 at 11:07
  • 1st is theme reference of inbuilt android lib and 2nd one is the attribute value – Sumit Kumar Sep 07 '17 at 11:10

1 Answers1

1
 android:textAppearance="@android:style/TextAppearance.Small"

is text style setting directly.

android:textAppearance="?android:textAppearanceSmall"

is the refrence text style that set value on this Activity or this TextView's Theme . Like this:

<style name="MyStyle">
<item name="textAppearanceSmall">@style/textStyle</item>
</style>
DeanJie
  • 26
  • 2