@Override public boolean onMarkerClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); return(false); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@Override public void onInfoWindowClick(Marker marker) { Toast.makeText(this, marker.getTitle(), Toast.LENGTH_LONG).show(); }
@SuppressLint("InflateParams") @Override public View getInfoContents(Marker marker) { if (popup == null) { popup=inflater.inflate(R.layout.popup, null); } TextView tv=(TextView)popup.findViewById(R.id.title); tv.setText(marker.getTitle()); tv=(TextView)popup.findViewById(R.id.snippet); tv.setText(marker.getSnippet()); return(popup); } }
@SuppressLint("InflateParams") @Override public View getInfoContents(Marker marker) { if (popup == null) { popup=inflater.inflate(R.layout.popup, null); } TextView tv=(TextView)popup.findViewById(R.id.title); tv.setText(marker.getTitle()); tv=(TextView)popup.findViewById(R.id.snippet); tv.setText(marker.getSnippet()); return(popup); } }
@SuppressLint("InflateParams") @Override public View getInfoContents(Marker marker) { if (popup == null) { popup=inflater.inflate(R.layout.popup, null); } TextView tv=(TextView)popup.findViewById(R.id.title); tv.setText(marker.getTitle()); tv=(TextView)popup.findViewById(R.id.snippet); tv.setText(marker.getSnippet()); return(popup); } }
@SuppressLint("InflateParams") @Override public View getInfoContents(Marker marker) { if (popup == null) { popup=inflater.inflate(R.layout.popup, null); } TextView tv=(TextView)popup.findViewById(R.id.title); tv.setText(marker.getTitle()); tv=(TextView)popup.findViewById(R.id.snippet); tv.setText(marker.getSnippet()); return(popup); } }
@SuppressLint("InflateParams") @Override public View getInfoContents(Marker marker) { if (popup == null) { popup=inflater.inflate(R.layout.popup, null); } TextView tv=(TextView)popup.findViewById(R.id.title); tv.setText(marker.getTitle()); tv=(TextView)popup.findViewById(R.id.snippet); tv.setText(marker.getSnippet()); return(popup); } }
@SuppressLint("InflateParams") @Override public View getInfoContents(Marker marker) { if (popup == null) { popup=inflater.inflate(R.layout.popup, null); } TextView tv=(TextView)popup.findViewById(R.id.title); tv.setText(marker.getTitle()); tv=(TextView)popup.findViewById(R.id.snippet); tv.setText(marker.getSnippet()); return(popup); } }
public View getInfoContents(Marker arg0) { View view = LayoutInflater.from(mContext).inflate(R.layout.amu_info_window, null); TextView infoWindowText = (TextView) view.findViewById(R.id.window); if (arg0.getSnippet() != null) { infoWindowText.setText(Html.fromHtml(arg0.getTitle() + "<br>" + arg0.getSnippet())); } else { infoWindowText.setText(Html.fromHtml(arg0.getTitle())); } return view; } });
public MarkerAssert hasTitle(String title) { isNotNull(); String actualTitle = actual.getTitle(); assertThat(actualTitle) // .overridingErrorMessage("Expected title <%s> but was <%s>.", title, actualTitle) // .isEqualTo(title); return this; }
@SuppressLint("InflateParams") @Override public View getInfoContents(Marker marker) { if (popup == null) { popup=inflater.inflate(R.layout.popup, null); } if (lastMarker == null || !lastMarker.getId().equals(marker.getId())) { lastMarker=marker; TextView tv=(TextView)popup.findViewById(R.id.title); tv.setText(marker.getTitle()); tv=(TextView)popup.findViewById(R.id.snippet); tv.setText(marker.getSnippet()); Uri image=images.get(marker.getId()); ImageView icon=(ImageView)popup.findViewById(R.id.icon); if (image == null) { icon.setVisibility(View.GONE); } else { icon.setVisibility(View.VISIBLE); Picasso.with(ctxt).load(image).resize(iconWidth, iconHeight) .centerCrop().noFade() .placeholder(R.drawable.placeholder) .into(icon, new MarkerCallback(marker)); } } return(popup); }
@Override public View getInfoContents(Marker marker) { // Inflate the layouts for the info window, title and snippet. View infoWindow = getLayoutInflater().inflate(R.layout.custom_info_contents, (FrameLayout) findViewById(R.id.map), false); TextView title = ((TextView) infoWindow.findViewById(R.id.title)); title.setText(marker.getTitle()); TextView snippet = ((TextView) infoWindow.findViewById(R.id.snippet)); snippet.setText(marker.getSnippet()); return infoWindow; } });
Toast.makeText(this, marker.getTitle() + " z-index set to " + zIndex, Toast.LENGTH_SHORT).show();