Environment: Eclipse ADT Build: v22.3.0-887826, Windows 8.1 Host.
I make the following steps to create new Android project:
File - New Android Application Project. Application Name: Sample, all other fields default: Minimum SDK 8, Target 18, compile with 19. Next.
Create custom launcher - off, Create activity - on. Next.
Blank activity, Next.
SampleActivity, Layout name activity_sample. Finish.
Finally, I open package explorer, Sample - res. Layout directory is empty. src directory is also empty, main activity class is not created.
Go to following:
'Help'->'Install New Software' and type https://dl-ssl.google.com/android/eclipse/
Select ADT option and install it. It will update the ADT.
Even I had the same problem and my issue got resolved with it!!
Try updating ADT to 22.6 using this link Android Developer Tools Update Site - http://dl-ssl.google.com/android/eclipse/
I had a similar problem on Mac OsX 10.9.2 and updated to
Android Developer Tools 22.3.0.v201310242005-887826
which is the same version that Alex had the original problem on. For me, the updating fixed the problem, so I don't think it was the version of ADT that was causing the problem. Something else in the update process cleared the cause of the problem. Now, when I create a new Android project, the layout files and activity class is created, as expected.