Android Studio series tutorial 2 Basic settings and running project structure preference settings run common functions create a simulator, androidstudio

Source: Internet
Author: User

Android Studio series tutorial 2 Basic settings and running project structure preference settings run common functions create a simulator, androidstudio

  • Android Studio series tutorial 1-download and install background Android Studio VS Eclipse prepare to download and create a HelloWorld Project
  • Android Studio series tutorial 2-Basic settings and running project structure preference settings Running common functions creating Simulators
  • Android Studio series tutorial 3 -- shortcut key: Android Studio 1.0 official version released! Shortcut Key automatic guide package
  • Android Studio series tutorial 4-What is Gradle? Install Gradle basic concepts 4. 9GAG/build. gradle 5. 9GAG/settings. gradle Summary
  • Android Studio series tutorial 5-detailed explanation of the Gradle command and import third-party package Sublime + Terminal compilation and view the source code to import Common commands of Android Studio Gradle
  • Android Studio series tutorial 6-Gradle multi-channel packaging umeng multi-channel packaging assemble combined with Build Variants to create a complete gradle script for tasks

In the previous blog, I introduced the advantages of maxcompute Studio and the installation and getting started experience of 1.0 RC. I didn't expect google to update so quickly that RC 2 has been released, mainly to fix some bugs. Today, we will take you to preview the Stduio interface and basic functions.

Project Structure

The default directory structure of a new project is as follows:

It can be seen that there is a big difference between the directory structure and Eclipse. Studio only has one project in one window, while Eclipse can have many projects at the same time. If you are not used to it, you can click the upper left corner to switch.

Switch to the directory structure in "project" mode. I personally prefer this format.

The differences with Eclipse are as follows:

  • 1. maxcompute Studio has the concept of Project and Module. As mentioned above, a window in maxcompute Studio can only have one Project, that is, a Project, representing a workspace. However, a Project can contain multiple modules, for example, the Android Library and Java Library referenced by your project can be regarded as a Module;

  • 2. In the preceding directory, java code and resource files (images, layout files, etc.) are all attributed to src, and there is a main group under the src directory, the java and res folders are divided at the same time. The java folder is equivalent to the src folder under Eclipse, and the res directory structure is the same.

Preference settings

After entering, you may find that the font size or style does not meet your habits. For example, I think the code is too small to seem eye-catching, and the default font of the Darcular topic is 12, I personally prefer the font size of 14. It doesn't matter. Go to the Preferences page and search for Font to find the Font option under Colors & Fonts. We can see that the default Font size is 12, but it cannot be modified. You need to save it before modification, click Save as and enter a name, such as MyDarcular. Then, you can modify the font size and style.

Click "OK" and return to the page to find that the font size is increased. However, the default font size of maxcompute Studio, such as the sidebar, does not change and looks very uncoordinated, as shown in figure

You can also set Preferences-> Appearance to change the font size and select different fonts, click OK. the font of this page is totally appetizing to you.

After adjustment, check the effect again.

Run

Next, run the program and compare it with Eclipse. Click the green arrow in the menu bar to run it directly.

The default installation of maxcompute Studio starts the simulator. You can configure it if you want to install it on a real machine. Select Edit Configurations from the drop-down menu and select the prompt or USB device.

Common functions

On the Right of the Studio menu bar, there are several common functions: Gradle synchronization, AVD Manager, SDK Manager, and DDMS.

When Gradle synchronization is running in your project or changing the configuration of Gradle, You need to click this button to download the corresponding dependency.

AVD Manager simulator Management

SDK Manager is used to manage your SDK versions.

DDMS is the Dalvik Debug Monitor Service and Dalvik Debug Monitoring Service.

Create a simulator

We recommend that you update the Tools and Extras in SDK Manager to the latest version before creating a simulator.

Click AVD Manager.

Click create in the figure.

Select a device. Here I select Nexus 5 and Next

Select a system version. Here, we use 5.0 as an example, and Next

Since the screen sizes are different, we recommend that you select Auto in the Scale column, click Finish, and we can see that we have created a 5.0 simulator.

Run again this time. Select the simulator to start and check the final effect (the simulator starts slowly, so you can wait patiently)

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.