Studio 2.2 Preview for Android-new UI designer and constrained layouts

Source: Internet
Author: User

Preview in Studio 2.2 for Android-new UI designer and constrained layouts by Jamal Eason Chan, product manager, Robotics

This week in Google I/O 2016, we launched the preview in Android Studio 2.2. The release is a big update that is built on our focus on building Android's fast and efficient integrated development environment (IDE).Android Platform development synchronization with Android?? OID Studio allows you to use the latest Android?? OID API and feature development. since just 3 years ago in Google I/O launch Android Studio, we have received very good advice from you on what features you most want. Today, the top 125 apps in the world with Google Play game developers, as well as millions of developers of 92%, use Android Studios. We want to continue to enhance functionality for Android and more productively when developing, will continue to make you more efficient.

. The preview of the Android Studio 2.2 includes a new combination of features along the development, from the design user interface to the building and new way to debug your application spectrum, This preview includes the following new categories:

Design
    • Layout Editor: A new user interface design that helps you to visually design layouts in your application. Like blueprint mode and the new Properties Panel feature, lets you quickly edit layouts and widgets faster.
    • constrained layout: a new powerful and flexible Android layout that lets you not express complex user interfaces that are nested multiple layouts.
    • Layout Inspector: debug a snapshot of your application's layout on the Android emulator or device that is running. Check the view hierarchy and the corresponding properties.

Development
    • Firepower Bunker Plugin: Explore and integrate the firepower of the service suite provided by the Android studio. Like analysis, validation, notifications and AdMob add services just a few clicks.
    • Enhanced Code Analysis: Check the quality of your Android app code in Android studio. Apart from?? Android's 260 lint and code check, this release also includes new check infrastructure for Java 8 language usage and more cross-file analysis, new code quality checks.
    • Sample Browser: reference to Android sample code is now easier. In the Code Editor window, find the code snippet in the Google Android sample app that appears to help quickly launch your application's development.
    • improved C + + support: Android Studio 2.2 has improved C + + with the development of editing, build capabilities, and debugging pre-saved using the NDK built or cmake, rather than the Android Cradle project. In addition, the existing LLDB C + + debug is now even better with the project type Auto-Detect and the Java language to understand the C + + pattern, allowing you to use a single debugging process both for the Java language and the C + + runtime.
    • the IntelliJ 2016.1: Android Studio 2.2 includes all the latest updated IntelliJ from the underlying JetBrains product platform.

Establish
    • Jack Compiler improvements: support for annotation processing is added to Android Studio 2.2 using the new Jack compiler, as well as incremental compilation to reduce compilation time.
    • merged Inventory browser: Diagnose how you androidmanifest.xml the dependency merging of your application with the entire project generation variant.

Test
    • Coffee Test record: record the coffee UI test using your app as an ordinary user at all. When you click on the user interface of your application for you, then generate reusable and editable test code. You can run the generated tests locally, in a continuous integration environment, or in a fire bunker test lab.
    • apk Analysis: drill into your apk to help you reduce the APK size, debug the limitations of the 64K method, view dexamethasone files and more.


Google I/o ' 16: What's new in Android development tools

More in-depth understanding of new features Design
    • Layout Editor: Android's Studio 2.2 features a new user interface designer. There are a lot of improvements, but some highlights include:
      • Drag from the panel to the design surface or from the component tree view of your application? To move and drag and drop controls.
      • The design surface has a blueprint pattern to check the spacing and placement of your layouts.
      • The Properties panel now displays a full slice of the curatorial group and advanced performance to quickly edit the properties of the control.
      • The UI Builder can edit menus and system preference files.
2.2 Preview New layout editor in Android Studio
Edit menu in new layout editor

    • constrained layout: This new layout is a flexible layout manager for your application, allowing you to create a dynamic user interface without nesting multiple layouts. It distributes as is tightly coupled with the Android studio and API level 9 backwards compatible support library.
At first glance, the constraint layout is similar to Relativelayout's. However, constrained layouts are designed to be used in studio, allowing you to effectively express the design of your application by liking the LinearLayout, the framelayout,tablelayout, or the layout with less grid layout. Finally, the built-in automatic constraint inference engine. You can design your UI at your own discretion to make the Android studio do hard work. To help you get started, previewing in Android Studio 2.2 in the built-in template of the New Project Wizard now produces a constrained layout. Alternatively, you can right-click the layout of the new layout editor and select Convert to ConstraintlayoutOptions. This is an early preview of UI designers and constrained layouts, and we'll quickly add enchantments to the upcoming release. Learn more about the Android Studio tool website.






    Constrained layout


    Start Layout Inspector
      • layout check: for new and existing layouts, you may need to debug your application UI multiple times to determine whether the layout is rendered as expected. With the new layout check, you can drill down into the view hierarchy of your application and analyze the properties of each component of the UI on the screen.
    To use this tool, simply click on the Layout Inspector icon in the Android Monitor window and then create your application in Android studio to check the current view level for your snapshot.
      Layout Inspector

      Development
        • Firepower Bunker plugin: Firepower Bunker is a new suite of developer services that can help you develop high-quality applications, increase your user base, and earn more money. Android's internal studio can add a new or existing Android app to the firepower bunker with the new assistant window. To access the Firepower Bunker feature click on the Tools menu and select Firepower Bunker . You'll want to start by setting up a new fire bunker analytics, which lays the groundwork for you to explore fire bunker services like firepower bunker cloud messages or firease crash reports to add your application. Learn more about the fire bunker inside the Android studio integrated here.


        Firepower Bunker plugin for Android studio
          • code Sample Browser: In addition to importing samples of Android, the code sample browser is the menu option in the preview of Android Studio 2.2, allowing you to find the best symbol based on the current highlight of your project, Google offers Android code samples. To use this feature, highlight the variables, types, and methods in your code, and then right-click the context menu that displays the Find sample code. The result is displayed in a bottom output box.
        Sample Code Browser
        Establish
          • CMake and ndk-: for those who use Android Ndk,android, Studio now supports building Android application projects in existing build files that point to the cradle-building cmake and NDK. Once you have added your CMake or NDK construction project Cradle, Android Studio will automatically open your Android-related code files in studio editing and debugging.

        For cmake users, simply add the path in your CMList.txt file externalNativeBuildPart of your cradle file:
        CMake's Android? Set up in OID Studio

        For ndk-to create a user, simply add the path *. mk file in the section of your cradle file:
        Ndk-Building in Android Studio

          • Jack Improved tool: New Jack Toolchain compiles the Java language source into Android's Dex bytecode. Jack the compiler allows some Java 8 language features, such as lambda expressions, to be used on all versions of Android. This release adds full support for incremental build and annotation processing, allowing you to explore the Java 8 language features in existing projects.
        With Jack, use the incremental build to add the following to your Build.gradle file:

          Enable Jack Progressive compilation option
          Jack will automatically apply the note processor in the classpath. To use the comment processor at compile time without having to bundle it in the APK, use the new Annotationprocessor dependency range:
            Enable Jack Callout Processing
              • merged inventory browser: Make sure you androidmanifest with your project depends on how to combine build types, flavor variants are now easier with Android studios. Navigate to Androidmanifest.xml and click the label at the bottom of the new Consolidated List . Explore how each node of your androidmanifest is dependent on the different projects.
            List of merged browsers
            Test

              • Coffee Test History: Sometimes writing UI tests can be tedious??。 With the record Coffee UI test feature, creating a test is now as easy as just using your application. Android Studios will capture all UI interactions and convert them into a fully reusable coffee test if you can run a fire bunker test lab locally or even. To use Sound Recorder, go to the run menu and choose Record Coffee test .

            Coffee Test Record

              • APK Analysis: The new APK parser can help you understand the content and size of different components in your apk. You can also use it to?? Avoid the limitations of 64K reference methods with your agile files, diagnose Proguard configuration issues, due to merging androidmanifest.xml files, and check the compiled resource file (RESOURCES.ARSC). This will help you to reduce your apk size and make sure that your apk contains exactly what you are looking for.
            The analyzer APK shows you both the size of the original file and the various ingredients in your apk download size. Download size estimated size users need to download apk from Google Play when using. This information can help you prioritize which areas need to focus on your size reduction efforts.
            To use this new feature, click the Buildmenu, and then select Analysis apk...... Then, select the apk you want to analyze.

              APK Analyzer

                • Java Understanding C + + Debugger: when running n + + in the target debug C + + code, you can now use a single, Java-language-aware lldb instance. The debugger continues to support large lldb features such as fast steps and memory observation points, while also allowing you to stop breakpoints on the Java language and view the contents of your Java language memory.

                  • Auto-Debug Selection: Android Studio applications can now use the debugger type which will automatically enable the appropriate debugger-the Java language to understand C + + debugging is enabled if you are otherwise C + + Project Hybrid debugger "automatic". Projects that use the full Java language will continue to use the Java language Debugger.

                Enable automatic debugger C + +
                What's next? Download

                If you are using an earlier version of Android Studio, you can check for updates from the navigation menu plus that channel (help → check for updates [windows/linux edition],android studio → check for updates [OS X]). This update will download a new version instead of patching your existing copy of Android Studio. You can also preview the Canary Publishing site from Android Studio 2.2 and preview it for Android Studio 2.2, we recommend that you run the stable version in addition to the new Canary. Check out the tool site how to run two versions at the same time. We really appreciate any feedback you like about things, questions or features you would like to see. Connect with us-in the Android Studio development team-Our Google + page or Twitter.


                Original address: http://android-developers.blogspot.com/2016/05/android-studio-22-preview-new-ui.html

                Studio 2.2 Preview for Android-new UI designer and constrained layouts

                Related Article

                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.