title: how can we define dynamic(in parabola curve) Path of ViewObject(Bitmap)
body: <p>I am Currently working on One <strong>2D Android Game</strong>,</p>
  
  <p>In this game One <strong>ViewObject(Bitmap)</strong> is moving Across Screen On <strong>Parabola Path</strong> Like in this   Image,  But this Path is Static, the Static path is getting throught the Drawing with Fingure on canvas,</p>
  
  <p>As Same as signature Drawing.</p>
  
  <p><img src="https://i.stack.imgur.com/k4bLi.png" alt="enter image description here"></p>
  
  <p>The Bitmap Move code On this Static Path is </p>
  
  <pre><code>//animation step
  private static int iMaxAnimationStep = 900;
  private int iCurStep = 0;
  private Path ptCurve = new Path(); //curve
  private PathMeasure pm;            //curve measure
  private float fSegmentLen;         //curve segment length
  
  
   //init smooth curve
      PointF point = aPoints.get(0);
      ptCurve.moveTo(point.x, point.y);
  
      for(int i = 0; i &lt; aPoints.size() - 1; i++){
          point = aPoints.get(i);
          PointF next = aPoints.get(i+1);
    ptCurve.quadTo(point.x, point.y, (next.x + point.x) / 2, (point.y + next.y) / 2);
      }
  
      pm = new PathMeasure(ptCurve, false);
      fSegmentLen = pm.getLength() / iMaxAnimationStep;//20 animation steps
  
      //animate the Bitmap
      Matrix  mxTransform = new Matrix();
      if (iCurStep &lt;= iMaxAnimationStep) 
      {          
  
          pm.getMatrix(fSegmentLen * iCurStep, mxTransform,
                  PathMeasure.POSITION_MATRIX_FLAG);
          mxTransform.preTranslate(-Bitmap.getWidth(), -Bitmap.getHeight());
  
  
         canvas.drawBitmap(Bitmap, mxTransform, null);
  
          iCurStep++; //advance to the next step
          mPauseViewHandler.post(mPauseViewRunnable);
      } else {
          iCurStep = 0;
  
      } 
  </code></pre>
  
  <p>But My Problem is I want to Move This <strong>ViewObject(Bitmap)</strong> On <strong>Dynamic Path(in parabola curve)</strong> 
  &amp; that Dynamic curved path will work in Any Device.</p>
  
  <p>I have searched Lot but i can't Find Solution How to get <strong>Dynamic Path (in parabola curve)</strong>.</p>
  
  <p>help! If you have  Any Solution,Suggestion, idea ,tutorial regarding this post is Mostly Appreciated.</p>