첫 번째 내 코드를 살펴 보시기 바랍니다 :풋 이미지 뷰의 SRC <문자열, 문자열>
내가 아는,
map.put("pic", temp.toString());
은 다음과 같습니다
private ArrayList<HashMap<String, String>> list = new ArrayList<HashMap<String, String>>();
//...
ImageView temp = new ImageView(MyApp.this);
temp.setImageResource(R.drawable.icon);
//...
HashMap<String, String> map = list.get(i);
map.put("pic", temp.toString()); //"pic" will map to a ImageView
내 questione입니다 잘못된.
하지만 올바른 방법은 무엇입니까?
미리 감사드립니다.
이리? 'Drawable' 만 리소스 참조를 추출 할 수 없습니다. –
그래서, 이런 식으로 ImageView를 설정할 수 없습니까? – cht
서버에서 ImageView를 설정하고 작업에서 수행하려고합니다. 그래서 ImageView를 변경하는 방법을 알아야합니다. – cht