Android 0 Basics 12th: Get familiar with the Android studio interface and start selling

Source: Internet
Author: User

With the first two stages of learning, we can correctly build the development environment of Android Studio, create HelloWorld project and run successfully, then we will take you together to understand this powerful IDE development tool.

First, Android Studio home Panel

Reopening Android Studio will go to the following main page, slightly different from the first opening.

As you can see, there are four major areas, followed by a brief introduction:

Area 1 is a list of recently created or opened Android Studio projects for quick access to the corresponding project. The area is empty on first use, and the contents of the list can be deleted.

Region 2 is the version information for Android Studio, which indicates that this version of Android Studio is 2.3.3, which is currently the latest stable version.

Area 3 is the project operation area, there are four main operations:

1) Start a new Android Studio project: Create a new Android Studio program.

2) Open an existing Android Studio project: Opens an existing Android studio artifact.

3) Check out project from version control: Checks out a project from the versioning system.

4) Import project (Eclipse adt,gradle,etc.) : Import the project from Eclipse ADT or Gradle.

Region 4 is the global configuration and help information for Android Studio, which mainly includes the following features:

SDK Manager: Management SDK

Settings: Preference Settings

Plugins: Plugins

Import Settings: Importing settings

Export Settings: Exporting settings

Settings Repository: Setting up repositories

Check for update: Checking for updates

Project Defaults: Default settings for projects

Get Help: Helping

Here are some of the specific methods of use in the later stages of learning.

Second, the Android Studio development panel

Whether you choose a project you've already opened or a new or imported project, you'll open the development interface for Android Studio, as shown in:

The development panel is much more complex than the home panel and slightly more complex than the Eclipse panel.

The area 1 is the menu bar, the area 2 is the toolbar, the area 3 is the navigation bar, the area 5 is the code editing area, the area 4, 6 is the tool window, the bottom area 7 is the status bar, the left, right and the upper section of the status bar is the toolbar, then the one by one disassembly is understood.

1. Menu bar

menu bar details such as:

The menu bar provides features such as file management, editing, viewing, navigation, code checking, analysis, refactoring, build, run, tools, version control, and more.

2. Tool bar

Toolbar details such as:

Toolbar tools are some of the most common features extracted from the menu bar, so that you can quickly manipulate them.

From left to right, open items, save, sync, undo, Redo, Cut, copy, paste, find, replace, open file tags forward, open file tags switch back, compile, configure run and debug apps, run, apply changes, debug, run coverage applications, add processes to debug, Stop, Android virtual Device Manager, use Gradle to synchronize projects, project structure, SDK Manager, help, genymotion Device Manager (this tool is not available by default, will be learned separately later), may vary slightly from version to release, or you can customize the toolbar by post-learning.

3. Navigation bar

The navigation bar is used to assist in viewing open items and files, or you can turn navigation bar functionality on or off yourself.

1) Display the navigation bar operation steps:

? menu bar-view-Check navigation bar

2) to close the navigation bar, proceed as follows:

? Menu bar-view-Remove tick navigation bar

4. Editor

The editor is label-based and opens a new File tab in Android Studio every time you open a file edit.

File Tags:

Opening a file displays a label that allows us to quickly switch between multiple open files. Clicking a file tag is equivalent to opening a file, and the contents of the file are displayed and editable.

Edit area:

Coding in the editing area, the editor provides some auxiliary coding functions.

Left column:

The left column displays additional information about the code and displays different icons to differentiate the code structure, bookmarks, breakpoints, range indicators, change markers, code folding lines, and so on.

Right column:

The right column displays a warning or error message for the code, yellow for warning, and red for error. Place your mouse over the above to see the number of warnings and errors, and click on the warning to jump to the corresponding code.

5. Tool bar

The toolbar is used to place the tool, and the tool window can be expanded when clicked. The toolbars in Android Studio are distributed on the left and right sides of the main interface and at the bottom (above the status bar).

You can view a list of all the tools supported by Android Studio through the menu bar-view-tool windows-.

6. Status bar

The status bar is usually at the very bottom of the interface, primarily showing the current state of Android studio and the tasks performed.

The icon in the lower-left corner is the toolbar window display and hide switch, which you can click to finish displaying and hiding the toolbar.

The text description that follows is the description and description of the command currently selected in the menu bar or toolbar, or right-click context menu, and may only compile information such as the status description of the run.

"14:1" is the position of the current cursor.

"CRLF" is the line delimiter.

"UTF-8" is the encoding of the current file, if the current file does not automatically select the encoding, you can use here to encode the choice.

The following is followed by the context of the current file.

The lock icon that follows indicates whether the current file is read-only or writable.

The last icon indicates the highest brightness level of the current syntax, with inspections, Syntax, None, which can be changed by this icon.

7. Tool window

Tool window kind of more, different version slightly difference, I currently use the version of a total of 14, the next one by one split for a simple understanding.

7.1. Project Tools window: Projects

The Project Tools window provides a variety of view modes to view the project structure, and in the Project Tools window we can perform various operations on the files and directories in the project.

There are 10 viewing modes, which are displayed by default on Android, and can be displayed by selecting "Project, Packages, scratches, projectfiles, problems ...". The most common use of Android and project two, about this piece of the specific structure of our follow-up to the special study.

7.2. Structure Tool window: Structure

The Structure Tool window presents a tree-like hierarchy of elements in the file, and clicking on the element jumps to the location of the corresponding code in the editor.

7.3. Snapshot tool window: Captures

The Snapshot tool window holds the heap and allocation files that are dump in Android Monitor, where you can export the Hprof file and support a key to the Java heap dump.

7.4. Build Variant tool window: Build variants

The Build Variant tool window is used to select the current multi-channel version of the build, and the build APK builds the selected channel version.

7.5. Favorite tool window: Favorites

In everyday coding using Android Studio, if a file or piece of code is something we often need to see or use, you can add it to your favorites for quick viewing.

You can see that the Favorites folder supports files, bookmarks, and breakpoints in favorite items.

7.6. Running the tool window: Run

Running the tool window mainly shows the running process of Android studio.

7.7. Pending Task tool window: TODO

Tasks to be processed in Android Studio can be added with Todo comments, which indicates that this place is pending.

Open the Pending Tasks tool window Todo, which displays all pending tasks.

7.8, Android Monitor tool window: Android monitor

The Android Monitoring Tool window provides a very rich tool to view logs, recording screens, monitoring performance (CPU\MEMORY\NETWORK\GPU)

Zone 1 is the currently connected Android virtual device or hardware device.

Zone 2 is the application process running on the device.

Zone 3 is the log level that is output in the current window.

Zone 4 Filters The keyword search box for the log output in the current window.

Zone 5 is configured for filtering information.

Zone 6 is the log information for the output.

Area 7 is the device Operation button, from top to bottom: Screenshot, video, System information, stop application, layout view, Android Monitor Help information.

Zone 8 is the Log action button, from top to bottom: Clear the log, scroll to the end of the log, view stack information up, view stack information down, turn on journal Wrap, print, restart, logcat settings, Logcat help.

7.9, Information prompt window: Messages

Normal message prompt Output window.

7.10. Terminal Tools window: Terminal

Terminal commands can be executed directly in the Terminal tool window, which is very convenient to use.

7.11. Event Log window:

The Event Log window.

7.12. Gradle terminal window: Gradle Console

Gradle Information Output window.

7.13. Android Module Quick window: Android model

The model window included in the Android Studio project.

7.14. Gradle tool window: Gradle Project

The Gradle tool window lists all the Gradle tasks and run configurations supported in the current project and module so that we can quickly operate.

Now that the Android studio interface is familiar, the next issue is to get a complete picture of the other features of Android studio.

Come here today, if you have questions welcome message to discuss together, also welcome to join the Android 0 Basic technology Sharing group, grow together!

Past period Summary share:

Android 0 Basics Introduction 1th: Android's past life

Android 0 Basics Section 2nd: Android system Architecture and application components those things

Android 0 Basics Section 3rd: Bring you up to talk about Android development environment

Android 0 Basics 4th: Installing and configuring the JDK correctly Ko fu the first trick

Android 0 Basics 5th: Use ADT bundles to easily meet the goddess

Android 0 Basics 6th: Configuration Optimization SDK Manager, official dating goddess

Android 0 Basics 7th: Take care of Android simulator and start the Sweet journey

Android 0 Basics 8th: HelloWorld, the starting point for my first trip

Android 0 Basics 9th: Android app, no code can be developed

Android 0 Basics Section 10th: Development IDE Big upgrade, finally ushered in Android Studio

Android 0 Basics Introductory Section 11th: Simple steps to take you to fly, run Android Studio project

This article copyright for the public Share talent show (Shareexpert)--Xin 鱻 all, if reproduced please note source, hereby declare!

Android 0 Basics 12th: Get familiar with the Android studio interface and start selling

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.