the first image has main>new> activity option
the second image doesn't have main>new> activity option
the first image is from udacity tutorials with older version of Android studio. Second image is my Android studio latest version 2.2.3. I want to add a new layout but the option is not there.
on Android Studio, your second image to create a layout file choose the option "Android Resource File"
Right Click -> New -> Android resource file
on the window that will appear choose Layout