0

I was previously working on a 1 month project using Android Studio. My xml layout was all well and good until I opened it up today and had the following as my xml code:

enter image description here

As you can see the preview is showing the correct data, but the code is not.

What happened, how can I retrieve my original code?

Some of the files were not backed up on a VCS.

Boron
  • 99
  • 10
  • 34
  • Possible duplicate of [Android Studio shows wrong file contents](https://stackoverflow.com/questions/53249677/android-studio-shows-wrong-file-contents) – Zoe May 27 '19 at 13:58

1 Answers1

0

You can check the android studio local history if your files were not backed up:

Right click on your app folder - select "Local History" and "show history" to see your latest file that got changed

enter image description here

Tamir Abutbul
  • 7,301
  • 7
  • 25
  • 53