01 Android Studio
01 Android Studio
Lecture 2
Wenbing Zhao
Department of Electrical Engineering and Computer Science
Cleveland State University
[email protected]
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
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