private void initPopup() { view = ((LayoutInflater) mContext .getSystemService(Context.LAYOUT_INFLATER_SERVICE)).inflate( R.layout.popup_layout, null); popup = new PopupOverlay(mMapView, new PopupClickListener() { // ������ public void onClickedPopup(int index) { } }); }
public void createPaopao() { viewCache = getLayoutInflater() .inflate(R.layout.custom_text_view, null); popupText = (TextView) viewCache.findViewById(R.id.textcache); // ���ݵ����Ӧ�ص� PopupClickListener popListener = new PopupClickListener() { @Override public void onClickedPopup(int index) { Log.v("click", "clickapoapo"); } }; pop = new PopupOverlay(mMapView, popListener); MyLocationMapView.pop = pop; }