private float centerX(View view) {
   return ViewCompat.getX(view) + view.getWidth() / 2f;
 }