all files related to project are placed inside project folder. but if you have copied WHOLE project, then you have moved also (hidden) .idea
folder, which may contain some visual params of AS related to this project, thus in previews XMLs may be rendered differently. I bet when your app is building properly on both workstations then app will look exacly same on particular device
for preventing such situation I would advice:
- repository! (with proper ignoring configuration, e.g.
gitignore
file)
- after moving whole folder and opening it in AS first thing to do: File -> Invalidate caches / Restart and do whole clean up
second option will clean up your project and strip from AS-instance-related, workstation-related and build-related files. you can check out which files/folders are such type (doesn't belong to project code) in linked gitignore
. also note that with second option you will have to do such clean up every time when you move from one workstation to another, thus: just use some reposity!