Everything you should know when using Android studio for the first time

Source: Internet
Author: User

? "declaration"

Welcome reprint, but please keep the original source of the article →_→

Life One number: http://www.cnblogs.com/smyhvae/

Article Source: http://www.cnblogs.com/smyhvae/p/4390905.html

Contact information: [Email protected]

Body

Recently the online popular program ape encouragement Teacher's jokes, encourage the teacher's remuneration than the program ape is higher, think also is really a good job, what? You've never heard of it? Turn to the end of this article, exploded view.

Pre-vacation benefits before writing a blog: using Android studio to build the Android integrated development environment (graphics tutorial), the previous one can do a bit of a look. At the time, Andriod studio was still in beta, and now Android Studio has been upgraded to a stable version of 1.1, and decided to re-write a tutorial that would allow those who still cling to the eclipse (including themselves) to cross the path .

"Development Environment"

Physical Machine Version: Win7 flagship edition (64-bit)

Android Studio Version: 1.1 Official edition

"The advantages of Android Studio"

    • Build support based on Gradle
    • Android specific refactoring and quick fixes
    • Richer template code, making it easier to create a program
    • Prompt tool for better control of program performance, availability, version compatibility, and other issues
    • Support Proguard and application signature function directly;
    • Comes with a layout editor that lets you drag and drop UI components, preview layouts on multiple screen configurations, and more;
    • Built-in Google Cloud support;
    • Built-in SVN, git tools support;
    • Plug-ins are supported, and Eclipse has one that is basically available in Android Studio.

Android Studio Download Green channel: http://www.androiddevtools.cn/

First, Installation:

After the Android studio installation is complete, first start as before, in order to avoid re-downloading the new version of the SDK, the operation is as follows:

As soon as you start, add a line to the bin directory's idea.properties file:disable.android.first.run=true , avoid automatically re-downloading the SDK the first time you open as. Right-click on Mac platform->show package Contents found the bin directory.

The first time you open Android Studio, you need to configure the JDK and SDK:

Note: Don't ask me how the JDK and Android SDK came from? To install the first self-oh, this kind of post search a lot of, not my writing style.

Second, create a new Android Studio project:

Once you've configured your JDK and Android SDK, you're ready to start a new Android project:

, after you have set the project name and path, you can follow it all the way next:

If the user installs Android Studio for the first time, the following window will appear:

, is in the download gradle, about 50 trillion bar, because the visit is a foreign site, recommended FQ.

Third, the simple settings of Android Studio:

1. Subject Modification:

Perhaps people will think the software interface is not very good, we can change the theme. Select the menu bar "File--settings--apperance--theme", the theme Select Darcula:

2. Import third-party topics:

The two themes offered by the system may not look good, and we can go to the website http://www.ideacolorthemes.org/home/to get third-party themes, such as the sublime theme that I personally love:

, after downloading it, is a jar package. How do I import it into Android studio?

Don't worry, go back to Android Studio, choose the menu bar "File-import Settings", will download a good Jar package import can, I temporarily do not change the theme, like the small partners to change their own private oh.

3, Code font modification:

Select the menu bar "File--settings--editor--colors&fonts--font":

The default scheme is not changed, click "Save as" to create a new name (such as MyFont). Then you can change the font:

You can also modify the console font:

After the modification, I found that some of the default fonts for the AS, such as the sidebar of the project directory font has not changed, if you want to change it, then change it (I generally do not change), modify as the default font:

4, check the update:

Select the menu bar "File--settings--updates" as shown in:

5, shortcut key habits of modification:

If you want to change the usage of the shortcut to eclipse, you can choose the menu bar "File--settings--keymap":

I'm not going to change it here, huh?

6. Add API document hover hint:

As the default is no API document hover prompt, only press and hold "ctrl+q" too will appear prompt. If you want to add an API hover hint, set the following:

, in the red box part of the hook on the line, but doing so on the computer's performance consumption will increase, can not be set, according to personal habits.

7, the configuration code automatically prompts:

Android Studio By default is the code automatically prompt, that is, you each hit a letter, will pop up the prompt box, if you want to turn it off, you can set:

If you want to turn off this code automatically prompts the function, the red box part of the hook is removed.

Now I want to do is: each time you manually press the shortcut key, the code prompt appears. The operation is as follows:

, enter "class name completion" In the search box, see the code hint of the default shortcut is ctrl+alt+ space, if you want to get rid of this shortcut, the operation is as follows:

, right-click the Red-box section and modify it in the pop-up dialog box.

Note: If you are accustomed to using eclipse, but be aware that "ctrl+/" in Android Studio is another shortcut key:

People who are accustomed to using eclipse can swap the two keys of the Red box section.

To configure the case sensitivity of code hints:

As the default code hints are case-sensitive , do not look at the letter. We enter the lowercase intent, which indicates the following effect:

When you enter an uppercase intent, the effect is as follows: (Intent class appears)

As you can see from the above two graphs, the default code hints are case-sensitive . So I want to make as insensitive to case, how do I do it? The operation is as follows:

, we change the part of the arrow to "none". The effect is as follows:

Hold down the CTRL key while clicking the mouse to view the source code:

If the SDK has been successfully loaded, this is actually set in the shortcut key:

The shortcut key in the Blue bar box in the section means: Hold down the CTRL key and click the mouse to view the source code.

8, set the Automatic guide package:

Prior to eclipse, we had to guide the package each time we referenced some classes, and as could be set to auto-guide. Select the menu bar "File--settings--editor--auto Imports":

, tick the two arrows at the location.

9. Display the number of lines of code:

, the red frame part is ticked.

What the? Do you think that Android Studio is not enough to understand? It doesn't matter, I will continue to fight for the three days of holiday, please look forward to the following. Eye Candy Time to:

Everything you should know when using Android studio for the first time

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.