title: Android - Relative_to_Parent Vs. Relative_To_Self
body: <p>When dealing with TranslateAnimations, you can move a particular object from position A to position B. The co-ordinates for these positions can be denoted in Relative_To_Self vs. Relative_To_Parent? These positions are represented in percentages.</p>
  
  <p>What exactly does this mean?</p>
  
  <p>For examples, suppose I have a Relative_Layout whose width is set to Fill_Parent and an ImageView in it whose width is lets say 80pixels. </p>
  
  <p>Here is the definition I am looking at:</p>
  
  <pre><code>public TranslateAnimation (int fromXType, float fromXValue, int toXType, float toXValue, int fromYType, float fromYValue, int toYType, float toYValue)
  </code></pre>
  
  <p>If I set my fromXType to Relative_to_parent and my from X value as 0.0. Does this mean that my imageView will start at the extreme left of the screen?</p>
  
  <p>If I set it to Relative to Parent and fromXValue as -1.0.Does this mean that it will start from -80 pixels from where it is originally?</p>
  
  <p>Are my assumptions correct? Thanks in advance for any help. </p>