Home » Android » Accidentally deleted Android layout file

Accidentally deleted Android layout file

Posted by: admin June 15, 2020 Leave a comment


I accidentally deleted a layout file from my Android project. Is there any way I can get it back? I haven’t touched since it was done. And I don’t have copies of the file else where.

How to&Answers:

If you have the apk in your bin folder, you’re lucky: use apktool and get your decompiled xml files back.
And, for the future, always make backups, as keyboardsurfer pointed out.


Right click on your Project, hover on Local History and select Show History.
See changes and try to revert.


Simple answer will be “no”. You can not recover a file which is deleted by eclipse.