【bug】java.lang.NoSuchMethodError: android.widget.TextView.setBackground
安卓的背景色设置需要根据SDK的版本来分情况考虑:
if (Build.VERSION.SDK_INT >= 16) { textView.setBackground(null); } else { textView.setBackgroundDrawable(null); }
安卓的背景色设置需要根据SDK的版本来分情况考虑:
if (Build.VERSION.SDK_INT >= 16) { textView.setBackground(null); } else { textView.setBackgroundDrawable(null); }