Topic2 Slide Notes
Topic2 Slide Notes
The startup layout, that is the layout for the screen elements that will be displayed when
your application is started by the user, is the activity_main layout. All other layouts should
be named according to the activity that they support (activity_input, activity_delete)
Click the Finish button to finish creating the project and jump into exploring the IDE
Select Run ➪ Run app from the Android Studio menu bar. You should
see the Select Deployment Target dialog shown below:
reads
setContentView(R.layout.activity_main);
Place your cursor after this line and press the Enter key. On the
new line, type the letter R, and then type a period, as shown here:
R.
If the code completion window does not open, press Ctrl+Space to force it to open.
Useful in a loop
When Android Studio hits, and pauses at, a breakpoint, the red
circle in the margin next to the corresponding line of code
changes to a circle with a check mark