title: android: How do I start animation from a certain point
body: <p>My Linear Layout takes around half screen width</p>
  
  <p>I am using this code for translating</p>
  
  <pre><code>&lt;translate
      android:duration="2000"
      android:fromXDelta="100%"
      android:toXDelta="0"
      android:interpolator="@android:anim/decelerate_interpolator"
      xmlns:android="http://schemas.android.com/apk/res/android"/&gt;
  </code></pre>
  
  <p>But my problem is the Linear layout translates from the end of the screen, where I have an another image at the end, so I don't want the layout to overlap with that image while animating</p>
  
  <p>So I want it to start translating from left side of that image</p>
  
  <pre><code> &lt;LinearLayout
                  android:id="@+id/row"
                  android:layout_width="wrap_content"
                  android:layout_height="wrap_content"
                  android:background="@android:color/transparent"
                  android:orientation="horizontal"
                  android:clipToPadding="false"
                  android:padding="3dp"
  
  
                  android:layout_alignParentBottom="true" android:layout_alignParentLeft="true"
                  android:layout_alignParentStart="true"&gt;
                  &lt;LinearLayout
                      android:id="@+id/items"
                      android:layout_width="wrap_content"
                      android:layout_height="wrap_content"
                      android:visibility="invisible"
                      android:background="@android:color/transparent"
                      android:orientation="horizontal"
                      android:padding="3dp"&gt;
                  &lt;ImageButton
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:background="@android:color/transparent"
  
                      android:paddingBottom="5dp"
                      android:paddingLeft="16dp"
                      android:paddingRight="16dp"
                      android:paddingTop="5dp"
                      android:src="@drawable/search"
                      android:text="Android Custom Horizontal Dropdown Menu Icons" /&gt;
  
                  &lt;ImageButton
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:layout_marginLeft="2dp"
                      android:background="@android:color/transparent"
  
                      android:paddingBottom="5dp"
                      android:paddingLeft="16dp"
                      android:paddingRight="16dp"
                      android:paddingTop="5dp"
                      android:src="@drawable/search"
                      android:text="Android Custom Horizontal Dropdown Menu Icons" /&gt;
  
                  &lt;ImageButton
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:layout_marginLeft="2dp"
                      android:background="@android:color/transparent"
  
                      android:paddingBottom="5dp"
                      android:paddingLeft="16dp"
                      android:paddingRight="16dp"
                      android:paddingTop="5dp"
                      android:src="@drawable/search"
                      android:text="Android Custom Horizontal Dropdown Menu Icons" /&gt;
  
                  &lt;ImageButton
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:layout_marginLeft="2dp"
                      android:background="@android:color/transparent"
  
                      android:paddingBottom="5dp"
                      android:paddingLeft="16dp"
                      android:paddingRight="16dp"
                      android:paddingTop="5dp"
                      android:src="@drawable/search"
                      android:text="Android Custom Horizontal Dropdown Menu Icons" /&gt;
  &lt;/LinearLayout&gt;
                  &lt;ImageButton
                      android:layout_width="wrap_content"
                      android:layout_height="match_parent"
                      android:layout_marginLeft="2dp"
                      android:background="@android:color/transparent"
  android:id="@+id/widget"
                      android:paddingBottom="5dp"
                      android:paddingLeft="16dp"
                      android:paddingRight="16dp"
                      android:paddingTop="5dp"
                      android:src="@drawable/three"
                      android:layout_marginBottom="30dp"
                      android:text="Android Custom Horizontal Dropdown Menu Icons" /&gt;
  
              &lt;/LinearLayout&gt;
  
          &lt;/RelativeLayout&gt;
  
  I want to animate the Linear Layout with id items
  </code></pre>