title: How to move an ImageView along X and Y axis with Sensor Accelerometer Data
body: <p>I have an oversized image that I want to move up, down, left and right, using the Accelerometer values. I have created the following code that works, but the image moves in distinct steps and does not slide smoothly.  </p>
  
  <pre><code>float[] matrix = new float[9];
  mMatrix.getValues(matrix);
  
  if (accelerometerValues[0] &lt; MOVE_RIGHT_LIMIT) {
  
   mMatrix.setTranslate(matrix[2] + 10, matrix[5] );
   mSchematicDiagram.setImageMatrix(mMatrix);
  
   Log.d("PROJECTA_SENSOR", "Moving Right");
  </code></pre>
  
  <p>Is it correct to use the setTranslate on ImageView matrix for this sort of use case and how would you create this smooth transition ? </p>