title: android animate object to center of ConstraintLayout
body: <p>In one of my layout i have this structure</p>
  
  <p></p>
  
  <pre><code>    &lt;TextView
          android:id="@+id/textView19"
          style="@style/TextAppearance.AppCompat.Caption"
          android:layout_width="match_parent"
          android:layout_height="wrap_content"
          android:layout_marginBottom="8dp"
          android:gravity="center"
          android:textColor="@color/grey_500"
          app:layout_constraintBottom_toBottomOf="parent" /&gt;
  
      &lt;de.hdodenhof.circleimageview.CircleImageView
          android:id="@+id/instagram_avatar"
          android:layout_width="100dp"
          android:layout_height="100dp"
          android:layout_gravity="center_horizontal"
          android:layout_marginStart="8dp"
          android:layout_marginTop="20dp"
          android:layout_marginEnd="8dp"
          android:background="@drawable/circle_white_shape"
          android:elevation="5dp"
          android:src="@drawable/img_wizard_1"
          android:tint="@color/mdtp_white"
          app:civ_border_color="@color/grey_5"
          app:civ_border_width="3dp"
          app:civ_fill_color="@color/mdtp_white"
          app:layout_constraintEnd_toEndOf="parent"
          app:layout_constraintStart_toStartOf="parent"
          app:layout_constraintTop_toTopOf="parent"/&gt;
  
  &lt;/android.support.constraint.ConstraintLayout&gt;
  </code></pre>
  
  <p>in that i want to animate moving <code>instagram_avatar</code> CircleImageView to center of ConstraintLayout, how can i calculate center of device and move to that?</p>
  
  <p>for example:</p>
  
  <pre><code>instagram_avatar.animate().y(50f).x(50f).setDuration(5000).start();
  </code></pre>