Back to project page Vispin.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. ...
If you think the Android project Vispin listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.jpardogo.vispin.adapters; //from w ww . j av a 2s. c o m import android.content.Context; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.TextView; import com.google.android.gms.maps.GoogleMap; import com.google.android.gms.maps.model.Marker; import com.jpardogo.vispin.R; import com.jpardogo.vispin.ui.PinsMapFragment; import java.util.Timer; import butterknife.ButterKnife; import butterknife.InjectView; import butterknife.OnClick; import timber.log.Timber; public class PinInfoWindowAdapter implements GoogleMap.InfoWindowAdapter, GoogleMap.OnInfoWindowClickListener { private final Context mContext; @InjectView(R.id.title) TextView mTitle; public PinInfoWindowAdapter(Context context) { mContext = context; } @Override public View getInfoWindow(Marker marker) { return null; } @Override public View getInfoContents(Marker marker) { ViewGroup view = (ViewGroup) LayoutInflater.from(mContext).inflate(R.layout.map_info_window_pin, null); ButterKnife.inject(this, view); mTitle.setText(marker.getTitle()); return view; } @Override public void onInfoWindowClick(Marker marker) { } }