How to change filename in Android Eclipse development

I am following this book: "Teach Yourself to Develop Android Applications in 24 Hours, 2nd Edition" from Sams publication.

I'm on page 108 and he tells me to change my layout file "main.xml" to "splash.xml". I am trying to click on the filename in the package explorer, nothing. I am also trying to right click on the file name in package explorer and there is no way to rename the file. The only other way that comes to my mind is to change it in Windows Explorer. Should I change it in Windows Explorer, or is there a better way?

+3


source to share


3 answers


try: right click -> refactoring -> rename



+12


source


Or you can just select the file and press F2, the result will be the same.



+4


source


Just select the file and press SHIFT + F6

0


source







All Articles