To move a building, long press it and drag it to the desired place on your farm, and then press the green checkmark.
If you try to place a building in a space that is already occupied, the checkmark button will no longer be active, and the blocked area will be marked red.
To rotate a building, press the arrow button.
Note
Some buildings cannot be moved, such as the House, the Main Gate of the Farm, or the Pier.