package com.github.pengrad.mapscaleview.sample;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.github.pengrad.mapscaleview.MapScaleView;
import com.google.android.gms.maps.CameraUpdateFactory;
import com.google.android.gms.maps.GoogleMap;
import com.google.android.gms.maps.OnMapReadyCallback;
import com.google.android.gms.maps.SupportMapFragment;
import com.google.android.gms.maps.model.CameraPosition;
import com.google.android.gms.maps.model.LatLng;

public class MainActivity extends AppCompatActivity implements OnMapReadyCallback, GoogleMap.OnCameraMoveListener, GoogleMap.OnCameraIdleListener, GoogleMap.OnCameraChangeListener {

    private GoogleMap map;
    private MapScaleView scaleView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        SupportMapFragment mapFragment = (SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.mapFragment);
        mapFragment.getMapAsync(this);

        scaleView = (MapScaleView) findViewById(R.id.scaleView);
    }

    @Override
    public void onMapReady(GoogleMap googleMap) {
        map = googleMap;

//        googleMap.setOnCameraMoveListener(this);
        googleMap.setOnCameraIdleListener(this);
        googleMap.setOnCameraChangeListener(this);

        googleMap.moveCamera(CameraUpdateFactory.newLatLngZoom(new LatLng(21, 105.8), 10));
    }



    @Override
    public void onCameraMove() {
        scaleView.update(map.getProjection(), map.getCameraPosition());
    }

    @Override
    public void onCameraIdle() {
        scaleView.update(map.getProjection(), map.getCameraPosition());
    }

    @Override
    public void onCameraChange(CameraPosition cameraPosition) {
        scaleView.update(map.getProjection(), cameraPosition);
    }
}

@@ -1233,10 +1233,8 @@
 p;%0A%0A
-//
     
@@ -1478,18 +1478,16 @@
 %0A    %7D%0A%0A
-%0A%0A
     @Ove

Use both cameraMove and cameraChange in sample app