安卓的背景色设置需要根据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); }
转载于:https://www.cnblogs.com/lucky-star-star/p/4513843.html