ImageButton btn1=(ImageButton)findViewById(R.id.right);
  String str=getResources().getString(R.string.red_button);  ->red_button은 value/string.xml에 
   <string name="red_button">R.drawable.red</string>      <-요렇게 해놨어요
  btn1.setImageDrawable(getResources().getDrawable(str)); <-이런식으로는 이미지 지정을 할수없는 건가요?
  btn2.setImageDrawable(getResources().getDrawable(R.drawable.blue));

getDrawable의 파라미터로 int형을 쓰라고 나오네요 어덯게 방법이 없나요?

아님 다른방식이라도 알려주세요

실시간 체크 할꼐요