Android colors.xml 取得既定顏色
//Item_backcolor = getResources().getColor(R.color.Item_backcolor);
//ContextCompat.getColor(context, R.color.Item_backcolor);
Item_backcolor = ContextCompat.getColor(this, R.color.Item_backcolor);
//Item_backcolor = getResources().getColor(R.color.Item_backcolor);
//ContextCompat.getColor(context, R.color.Item_backcolor);
Item_backcolor = ContextCompat.getColor(this, R.color.Item_backcolor);
留言
張貼留言