This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//T is a type of items | |
//when inheriting, just create constructor matching super, | |
//and override viewHolder() method that will return ViewHolder for given item type | |
public abstract class BaseRecyclerAdapter<T> extends RecyclerView.Adapter<BaseRecyclerAdapter.BaseViewHolder> { | |
public interface OnItemClickListener<T> { | |
void onClick(T item); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class GoogleMapsAPIProjection | |
{ | |
private readonly double PixelTileSize = 256d; | |
private readonly double DegreesToRadiansRatio = 180d / Math.PI; | |
private readonly double RadiansToDegreesRatio = Math.PI / 180d; | |
private readonly PointF PixelGlobeCenter; | |
private readonly double XPixelsToDegreesRatio; | |
private readonly double YPixelsToRadiansRatio; | |
public GoogleMapsAPIProjection(double zoomLevel) |