안녕하세요.
백그라운드 칼라 변경메소드가
((RelativeLayout)findViewById(R.id.read_layoutImageView_1)).setBackgroundColor(R.color.color_pink);
((RelativeLayout)findViewById(R.id.read_layoutImageView_2)).setBackgroundColor(R.color.color_white);
이걸로 알고 있는데 적용이 안됩니다.
좋은하루 되시구요, 답변 부탁 드리겠습니다.
감사합니다.
((RelativeLayout)findViewById(R.id.read_layoutImageView_1)).setBackgroundColor(Color.WHITE);
or
((RelativeLayout)findViewById(R.id.read_layoutImageView_1)).setBackgroundColor(getResources().getColor(R.color. color_white));
or
((RelativeLayout)findViewById(R.id.read_layoutImageView_1)).setBackgroundResource(R.color. color_white);
이런식으로 사용하셔야 합니다~