Book Image

Android Studio Essentials

By : Belén Cruz Zapata
Book Image

Android Studio Essentials

By: Belén Cruz Zapata

Overview of this book

<p>Android Studio is an IDE that is based on the JetBrains IntelliJ IDEA. It gives developers a unique platform to develop and debug Android apps using various developer tools. It has a wide array of features such as live layout facility, Gradle build support, and template-based wizards, which makes it a preferred choice for developers.</p> <p>Starting off with the basic installation and configuration of Android Studio, this book aids you in building a new project by helping you to create a custom launcher icon and guiding you to choose your activity. You then gain an insight on the additional tools provided in Android Studio, namely the Software Development Kit (SDK) Manager, Android Virtual Device (AVD) Manager, and Javadoc.</p> <p>Finally, it helps you to familiarize yourself with the Help section in Android Studio that enables you to search for the help you might require in different scenarios.</p>
Table of Contents (17 chapters)
Android Studio Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Navigating code


The most direct way of navigating to declarations or type declarations is by pressing Ctrl and clicking on the method name when it is displayed as a link. This option is also accessible from the Declaration menu in Navigate.

We can navigate through the hierarchy of methods from the left edge of the editor. Next to the method declarations that belong to a hierarchy of methods, there is an icon that indicates whether a method is implementing an interface method, implementing an abstract class method, overriding a superclass method, or getting implemented or overridden by other descendants. Click on these icons to navigate to the methods in the hierarchy. This option is also available via Navigate | Super Method or Navigate | Implementation(s). You can test it in the main activity of our first project (MainActivity.java), as shown in the following screenshot:

Another useful utility related to code navigation is the use of custom regions. A custom region is a piece of code that...