LayersListAdapter

public class LayersListAdapter extends BaseAdapter implements MapEventListener

An adapter to show layers as list

Fields

mActivity

protected final NGActivity mActivity

mContext

protected final Context mContext

mDrawer

protected DrawerLayout mDrawer

mEditListener

protected onEdit mEditListener

mMap

protected final MapDrawable mMap

mMapView

protected final MapView mMapView

mOnPencilClickListener

protected View.OnClickListener mOnPencilClickListener

mTracksSyncEnabled

protected boolean mTracksSyncEnabled

Constructors

LayersListAdapter

public LayersListAdapter(NGActivity activity, MapView map)

Methods

beginDrag

void beginDrag()

endDrag

public void endDrag()

finalize

protected void finalize()

getCount

public int getCount()

getItem

public Object getItem(int i)

getItemId

public long getItemId(int i)

getView

public View getView(int i, View view, ViewGroup viewGroup)

notifyDataChanged

void notifyDataChanged()

onExtentChanged

public void onExtentChanged(float zoom, GeoPoint center)

onLayerAdded

public void onLayerAdded(int id)

onLayerChanged

public void onLayerChanged(int id)

onLayerDeleted

public void onLayerDeleted(int id)

onLayerDrawFinished

public void onLayerDrawFinished(int id, float percent)

onLayerDrawStarted

public void onLayerDrawStarted()

onLayersReordered

public void onLayersReordered()

onResume

public void onResume()

setDrawer

public void setDrawer(DrawerLayout drawer)

setOnLayerEditListener

public void setOnLayerEditListener(onEdit listener)

setOnPencilClickListener

public void setOnPencilClickListener(View.OnClickListener listener)

swapElements

public void swapElements(int originalPosition, int newPosition)