AndroidStudio tutorial (second bullet) and androidstudio tutorial

Source: Internet
Author: User

AndroidStudio tutorial (second bullet) and androidstudio tutorial
AndroidStudio tutorial (2)

  • MigrationEclipseProjectAndroid Studio

    The official document says:Android StudioCompatibleEclipseBut some operations are required:

    • EclipseBuild a project
      Upgrade firstADTTo the latest version, it seems that after 22, select fromEclipseExport Project, right-click and selectExportAnd selectAndroidUnderGenerate Gradle Build Files,
      After running, you will find that one morebuild.gradle, This isAndroid StudioThe file you recognize.
      PS: if notGrade buildFile, you can also import the projectAndroid Studio, It will use the existingAnt buildFile for configuration.
      However, in order to better use subsequent functions and make full use of building variables,
      We strongly recommend that youADTGenerated in the plug-inGradleFile re-importAndroid Studio.

    • Import
      InAndroid StudioSelectImport ProjectAnd selectbuild.gradleYou can.

      Sometimes it is not displayed on the left of the running button after the import.ModuleYes, it may be before you importSDKIf the version is differentbuild.gradleConfigure the correspondingSDKThe version is enough.

      android {    compileSdkVersion 19    buildToolsVersion "21.1.1"    ...    }
  • Create a project
    Create a project andEclipseThe process is almost the same. You can see it at first glance.

  • UseAndroidProject View
    This is purely personal interests, but for standardAndroidStudioProjects, which are commonly used inAndroidThe project view is displayed.

    The effect is as follows:

  • Use layout editor

    The timely and multi-screen preview of the layout editor is indeed a highlight.

    • ClickPreviewButton to preview.

      To preview the multi-screen effect, selectPreview All Screen Sizes.

    • Select Topic

      To set a topic for the application, clickThemeIcon,
      The selection dialog box is displayed.

    • Internationalization
      For international adaptation, select the international icon,
      Then, in the pop-up list, select the countries to be internationalized for adaptation.

  • Common functions
    Some people may not be able to find it when they come in.DDMSNow.

    The three icons in are,AVD Manager,SDK Manager,DDMS

  • Email: charon.chui@gmail.com
  • Good Luck!

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.