Quick Start for Androidstudio

Source: Internet
Author: User

Androidstudio Use detailed Introduction

Share to get happy, share to get friends. -Remember to pay attention Oh!

Objective

Heart good pain: Last night wrote this blog half, today's editor when the network suddenly broke, my article is so lost, but in order to developer use as this IDE can quickly get started, I still continue to explain. (This article combines the picture annotations to detail the basic settings of Androidstudio and the loading of some plug-ins, as well as how to import projects from Eclipse to as, while explaining clone or importing third-party libraries and instance demos), Hope my share can really help you now are not skilled with androidstuido. (This article Androidstudio abbreviated as, Eclipse abbreviated as EC)

Shortcut keys and code abbreviations Links:
http://blog.csdn.net/qq_15807167/article/details/51578339
Portal Androidstudio shortcut keys and code fast generation

    • Androidstudio Use detailed Introduction
      • As Create Project
      • Google Android Development Community
      • Our first as Project
        • Create Step 1
        • Create Step 2
        • Create Step 3
        • Create Step 4
      • As main interface display
      • Project Projects Directory
      • As generate file
      • As interface navigation display settings
      • As Operation introduction
      • As project relies on automatic gridle
      • As Edge shortcut button
      • As Customize your theme
      • As Shortcut settings preferences
      • Asmodule file
      • As plus plug-in
      • As code line Auto Prompt does not distinguish between first letter case
      • As Background plugin introduction
      • As version control plug-in Settings
      • As set global code line number display
      • As version version control main interface location
      • As manifest file considerations
      • As Supplement
    • Play Rewards

As Create Project


* This is the same as Eclipse's setup project space, but the function is obviously much larger (after all, a pro-son)

Google Android Development Community

    • The Google development community is the most authoritative, if you do not understand some of the problems or want to see the official website (of course, and you have to go through the wall)

    • China's Android development community for poor English partners can come here.

    • First you need to download the first download Androidstudio installation package (currently the latest should be 2.1 Beta is 2.2) currently used by the author for 2.2 Preview 2 portal (hint: need to flip the wall)

    • The specific installation process is no longer introduced ( mainly when the SDK is set to note that the C-drive should be super-large, but also note that the IDE SDK path is as installed SDK path, because the author encountered as using the SDK under Eclipse so everyone must be concerned about )

Our first as Project

    • On the left is the used project ( note that as each project path is not automatically copied or moved to the project directory )
    • Here is the dialog box for the creation of our first project (detailed in the figure, I will no longer be tired of describing)
(Create) Step 1

(Create) Step 2

(Create) Step 3

(Create) Step 4

As main interface display

    • See the beautiful girl background is not very happy (of course, if you installed the Sexyeditor plug-in, followed by the introduction of plug-in installation)
    • Is the interface very generous and concise (as the default is to provide two sets of themes: one is black, one is white to see a person likes, of course, you can also customize and import third-party jar)
Project Projects Directory

    • The current project structure directory is as the default (Android Project view), if you want to change the view click (The inverted triangle next to small robot Android, drop-down select Progect is the project structure view of Eclipse)
    • The project view of Eclipse is no longer covered, mainly the view of the project structure of the as itself.
    • =app directory is a programming Java files, layout files (of course, you can increase the sibling directory, such as jnilibs storage. os files)
As generate file

    • As file creation: Right-click->new is the type of file you can create
    • It is important to note that the refresh of as is different from the refresh of Eclipse
    • The picture has been described in detail, it's not much to say
As interface navigation display settings

    • You can set whether some forms of the main interface are displayed (selected in the View menu item)
    • Click on the settings, tick the check point, set to hide the display (I have hidden navigation Bar)
As Operation introduction

    • Introduction to the navigation of some shortcut settings in the As main interface
As Project dependent (auto Gridle)

    • Increased dependency (File->project strutrue)
    • Need to note:
      • Delete items must be in the picture frame, click on the item (modules) and click on the upper left corner minus, remove the item as loaded, before you can delete the option (otherwise you right-click the item cannot find the Delete button)
      • As will automatically import the dependencies you set, a total of three kinds
      • > 1. Dependency from the network (you can search)
      • > 2. Dependent on the local disk directory (you can find the path)
      • > 3. Dependencies from the project (you can import your own written libary as a dependency)
As Edge shortcut button

    • Overview of the main interface
    • VCS: Referring to distributed version controllers: Git SVN and Google's own
    • Help: Refers to the helper information, there is a newer version of the current edition of the check, and prompted to update.
    • As the most cool should be layout view, you can have your layout code at any time to see the changes in the screen (conscience)
    • Note If your Androidstuido is version 2.2, if the layout file container is android.support.constraint.ConstraintLayout name you can use the handle to control your view (pretty cool)
    • You can read my other blog post, which details the new features of 2.2. (You're going to love it)
As Customize your theme

    • Like DIY engineers can set your favorite as coded layout style
    • Lazy I like to quote someone else's style, and then change the font size: Recommend a style URL as theme style. <-Click to jump
    • Of course, after the download, the jar file needs to be imported before you can select the corresponding style in this view (import method: File->import setting-> Find the jar you downloaded)
    • Note: Changing the style must choose Save As ... Before you can make changes
As Shortcut settings preferences

    • If you are a different platform to develop Android, the shortcut key settings here you feel special care developer, for the choice of a lot, according to their favorite shortcut key combination hobby to choose it.
    • It is important to note that the as shortcut is not all changed to the other editor's shortcut settings, and some of them need to be changed (the picture has comments).
As (module file)

    • Here are all the dependent package paths ( skilled can be written directly here, and note that if you import other people's projects you need to modify the contents of Build.gradle and wrapper yourself )
As plus plug-in

    • If you like simplifying code input, and liking novelty (this will definitely satisfy you)
    • Recommended Plug-in portals
    • The picture has been introduced very detailed (no longer the statement)
As Code line Auto Prompt (do not distinguish the first letter case)

    • Note: The setting here is global, because as default only the first letter uppercase is prompted, so used to start with lowercase comrades and do not want to distinguish between the case of comrades, be sure to choose None.
As Background plugin introduction

    • Believe you see my as main interface you must be very curious about the background! Of course the author also uses a plugin sexyeditor.
    • Here is the use of this plugin method and comments, I hope developers like.
As version control plug-in Settings

    • Distributed version control for collaborative development
    • As comes with the GIT,SVN,CVS plug-in so you don't need to add to eclipse
    • At the same time you need: Install the corresponding environment can be used (note your plugin reference path, otherwise no effect)
    • Use Git and don't forget to sign in to your account and password on GitHub to verify it.
As set global code line number display

    • Note: This setting is global and each file opens with a code line number hint.
As version version control (main interface location)

    • Main Interface Quick action button, very convenient (you will like)
As manifest file considerations

    • Note that as in the list file no longer has a dialog box selection, so you need to write in code, but because as a powerful hint function, but rather speed up the editing speed.
As Supplement

Play Rewards
    • Hope that the blog will help you, you can pay attention to the blogger, or give a reward

Quick Start for Androidstudio

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.