我想改变线性布局的前景色.这是我的代码:layout.setForeground(new ColorDrawable(getResources().getColor(R.color.svbackclr))); 但是这个调用需要最小的api级别23.所以如何在前23 api上做同样的事情.
layout.setForeground(new ColorDrawable(getResources().getColor(R.color.svbackclr)));
android
android ×1