네 맞습니다.
Click_MangeLayer 안에 있습니다.
보기 불편 하실까봐 삭제하고 올린 거에요.
public OnClickListener Click_MangeLayer = new OnClickListener() { @Override public void onClick(View v) { Context mContext = GeoSync3Activity.this; LayoutInflater inflater = (LayoutInflater) mContext.getSystemService(LAYOUT_INFLATER_SERVICE); View layout = inflater.inflate(R.layout.layer_attribute,(ViewGroup) findViewById(R.id.main_layout)); AlertDialog.Builder aDialog = new AlertDialog.Builder(GeoSync3Activity.this);//여기서buttontest는 패키지이름 aDialog.setTitle("레이어 설정"); aDialog.setView(layout); aDialog.setPositiveButton("확인", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); aDialog.setNegativeButton("취소", new DialogInterface.OnClickListener() { public void onClick(DialogInterface dialog, int which) { } }); AlertDialog ad = aDialog.create(); ad.show(); // CHECK final Context mContext2 = GeoSync3Activity.this; LayoutInflater inflater2 = (LayoutInflater) mContext2.getSystemService(LAYOUT_INFLATER_SERVICE); View layout2 = inflater2.inflate(R.layout.layer_attribute,(ViewGroup) findViewById(R.id.main_layout)); Button gon_color = (Button)layout2.findViewById(R.id.goncolor); gon_color.setOnClickListener(click_goncolor); UISet_ManageMap(); }




실제 다이얼로그를 띄우는 소스는 어디 구현되어 있나요? 첫번째 클릭매소드 안에 있어야 할거같은데...