code: public void updateLocation(int x, int y, int gravity){
  		if(getParent() != null)
  			updateParams(x, y, gravity, getLayoutParams());
          else
              Log.v(FloatingActionButton.class.getSimpleName(), "updateLocation() is called without parent");
  	}
docs: Update the location of this button. This method only work if it's already attached to a parent view.
  @param x The x value of anchor point.
  @param y The y value of anchor point.
  @param gravity The gravity apply with this button.
  
  @see Gravity