安卓的背景色设置需要根据SDK的版本来分情况考虑:

if (Build.VERSION.SDK_INT >= 16) {
textView.setBackground(null);
} else {
textView.setBackgroundDrawable(null);
}

 

相关文章:

  • 2022-02-26
  • 2021-07-05
  • 2021-05-14
  • 2021-08-15
  • 2021-10-08
  • 2021-12-25
  • 2021-07-09
  • 2021-10-09
猜你喜欢
  • 2022-03-03
  • 2021-08-30
  • 2021-12-15
相关资源
相似解决方案