추가버튼 클릭하면 그리드뷰에 이미지 추가 어떻게해요..? ㅠㅠ
list2.setOnItemClickListener(new OnItemClickListener() {
public void onItemClick(AdapterView<?> parent, View view, int position, long id) {
AlertDialog.Builder a = new AlertDialog.Builder(SMG_window_intro.this);
//경고창 만드는거임 AlertDialog
a.setTitle("해당 제품을 추가 하시겠습니까 ?"); //타이틀
//a.setPositiveButton("예", null); // 눌렀을때 처리하는 버튼 결과값은 null없음.
a.setPositiveButton("예", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int id) {
Intent intent = new Intent();
intent.setClass(SMG_window_intro.this, SMG_window_intro.class);
startActivity(intent);
}
});
a.setNegativeButton("아니오", null); // 눌렀을때 처리하는 버튼 결과값은 null없음.
a.show();//위에 세팅한걸 보여주기 위한 show임
}
});
이부분에서 예 눌렀으면 그리드뷰 에다가 해당 이미지를 추가하고싶은데.
ㅠ _ㅠ 에휴




기존 이미지들 정보가 들어가 있는 어뎁터에다가 새로운 이미지 정보를 넣어서 노티하면 되지요..^^;;
어뎁터 공부다시 해보세요..그럼 바로 알수 있어요!