Android Studio Series Tutorial Two-basic setup and operation

Source: Internet
Author: User

Android Studio Series Tutorial Two-basic setup and operation

This article is for personal originality, welcome reprint, but please be sure to indicate the source in obvious position!

Above a blog, introduced the advantages of Studio and 1.0 RC installation and hands-on experience, did not expect Google's update speed so fast, has been out of RC 2 version, mainly to fix some bugs. So today we will take you to preview the next Stduio interface and basic functions.

Project structure

When we create a new project, the directory structure defaults to this

You can see that the directory structure of Eclipse is very different, studio can only have one project, and Eclipse can have a lot of projects at the same time, if you look not accustomed to click on the upper left corner to switch

Switch to the directory structure in project mode I'm more comfortable with this format myself.

The differences with eclipse are as follows:

    • 1. There is a concept of project and module in studio, which says that a window in studio can have only one project, project, which represents a workspace, but a project can contain multiple module For example, the Android library, Java Library and so on, which are referenced by your project, can be regarded as a module;

    • 2, the above directory will be Java code and resource files (Pictures, layout files, etc.) all boil down to SRC, in the SRC directory has a main group, while dividing the Java and res two folders, Java folder is equivalent to the SRC folder under Eclipse, The RES directory structure is the same.

Preference settings

After entering you may find that the font size or style does not conform to your habits, such as I think the code is too small to look hurt, darcular theme default font is 12, I personally more accustomed to 14 font size. Okay, to Preferences (set) page search font find the font option under colors&fonts , we can see the default font size is 12, But cannot modify, need to save before you can modify, click Save as to enter a name, such as mydarcular, then you can modify the font size and font style.

Click OK to go back to the page to find that the font is larger, but studio default some font size, such as the sidebar does not change, looks very uncoordinated, such as

Obsessive Compulsive Disorder You certainly unbearable, OK, here also can set, to Preferences , appearance modify on OK, here also not only can change font size, also can choose different font, click OK, This page font is totally in your appetite.

Adjust and then look at the effect

Run

Next Run the program, run it as compared to Eclipse , and click the green arrow in the menu bar to run directly

The Studio default installation launches the emulator and can be configured if you want to install it on a real machine. Select the Edit configurations select Prompt or USB device from the drop-down menu.

Common functions

There are several common features on the right side of the studio menu bar, namely gradle sync ,AVD manager,SDK manager,DDMS

gradle Synchronization When you run the project or change the Gradle configuration, you have to click this button, will download the corresponding dependency

AVD Manager Emulator Management

The SDK Manager is managing your SDK version

DDMS is the Dalvik Debug Monitor Service,dalvik Debug monitoring service.

Create simulator

It is recommended that you update the ToolsandExtras in the SDK manager to the latest before creating the simulator.

Click the AVD Manager button

Click the Create button in the diagram

Select a device, here I choose Nexus 5, then next

Select a system version here, take 5.0 for example, then next

Since your screen size is different, it is recommended that you select Auto in the scale column, then click Finish to see that we have created the simulator for good one 5.0.

This time we run again, choose the simulator to start looking at the final effect (the simulator starts very slowly, everybody waits patiently)


Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Android Studio Series Tutorial Two-basic setup and operation

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.