title: Scale and position a path in a custom View in Android
body: <p>I'm using a custom <code>View</code> so the user can draw on the screen. I'm using the <code>Path</code> class and everything works out.</p>
  
  <p>When the orientation change, the custom <code>View</code> width and height changes too. My question would be if there is a way to scale the path according to the new <code>View</code> size, and position it relatively too.</p>
  
  <p><strong>PS:</strong> for anyone wondering how did I save the path for orientation change, all credits to <strong>Rabie Jradi</strong> <a href="https://stackoverflow.com/questions/4919740/how-to-serialize-an-object-of-android-graphics-path">how to serialize an object of android.graphics.Path</a> </p>