Scrolling of the hatch in the lunar channel only between the first and last objects

I use moondroid Coverflow and work fine with my code. Now I want the element to stop scrolling when it reaches its final position. Since there is currently no end to scroll. Can someone help me decide. I also want to know if there is any default method in Coverflow to perform the above activities.

private void setCoverFlowMapView(List<PropertyRS> proReplica, Integer posMarker) { //moondroid coverflow 2826 mData = (ArrayList<PropertyRS>) proReplica; mCoverFlow = (FeatureCoverFlow) rootView.findViewById(R.id.coverflow); mAdapter = new CoverFlowAdapter(getActivity(), this,posMarker); mAdapter.setData(mData); mCoverFlow.setAdapter(mAdapter); mCoverFlow.computeScroll(); if (posMarker != null) { mCoverFlow.scrollToPosition(posMarker); } mCoverFlow.setOnScrollPositionListener(new FeatureCoverFlow.OnScrollPositionListener() { @Override public void onScrolledToPosition(int position) { Double cvLat = mData.get(position).latitude; Double cvLong = mData.get(position).longitude; System.out.println("coverflow item position " + position); mAdapter.setPos(position); ((BaseAdapter)mCoverFlow.getAdapter()).notifyDataSetChanged(); LatLng cvLatLng = new LatLng(cvLat, cvLong); CameraUpdate cvCameraUpdate = CameraUpdateFactory.newLatLngZoom(cvLatLng, 15); googleMap.animateCamera(cvCameraUpdate); } @Override public void onScrolling() { } }); } 
+5
source share

All Articles