下图可以看到BitmapDrawable()和getColor()已经被弃用,作为有强迫症的程序员是不喜欢这样的,以下就给出大家的解决办法:
可以改成:
getWindow().setBackgroundDrawable(new ColorDrawable(android.graphics.Color.TRANSPARENT));
可以改成:
adapter.setTextColor(ContextCompat.getColor(context,R.color.blue));