-1

Is there something instead of backgroundTint for api level less than 21?<

byte_bx
  • 71
  • 1
  • 7

1 Answers1

0

Just use app:backgroundTint instead of android:backgroundTint, the tint will take effect below Lollipop. The reason is AppCompatActivity AppCompatDelegateImplV7 use AppCompatViewInflater to auto change Button or TextView to AppCompatButton or AppCompatTextView, then app:backgroundTint take effect.

AppCompatButton backgroundTint API < 21

Community
  • 1
  • 1
JTeam
  • 1,455
  • 1
  • 11
  • 16