Android Studio 0.5.8 发布 - 开源中国社区
Float_left Icon_close
Android Studio 0.5.8 发布
oschina 2014年05月09日

Android Studio 0.5.8 发布

oschina oschina 发布于2014年05月09日 收藏 9 评论 9

Android Studio 0.5.8 发布了,改进内容包括:

  • Fixed a number of crash reports from recent canary builds

  • Integrated two more IntelliJ EAP builds: 135.760 (release notes) and the earlier 135.689 (release notes)

  • Gradle

    • Support for Gradle 1.12, and the new Android Gradle plugin 0.10.

    • If you configure a "resource prefix" for your Android library (see the build system docs), in order to avoid accidental name clashes, Studio will flag all resources that do not conform to the given prefix, and it will also default newly suggested identifiers in the layout editor, create resource dialogs etc to identifiers which begin with the prefix. 

  • Layout Editor

    • Support for "show in included", which lets you view and edit layouts that are included in other layouts "in context". Take for example the rating-bar layout from the Google I/O 2013 app:

      You can now edit this rating bar layout embedded within another layout which uses it, such that you can see how it appears in context:


      The outer layout is shown partially translucent to make it more obvious which parts of the layout are editable and part of this layout, and which parts are not. Note also how the Component Tree on the right will list the name of the surrounding layout. When you invoke Extract Include, the included layout is shown in the above way automatically.

    • The layout editor and XML layout preview rendering now supports "hover": as you move your mouse around, the view under the mouse is highlighted slightly and shown with a faint dashed border. This makes it easier to understand the structure of your layout without having to click to select each view.

    • The frequently reported bug where using cut, copy and paste shortcut keys in the property sheet would operate on the whole widgets rather than the property sheet text has been fixed.

  • Lint: Several new checks:

    • A layout include tag check which ensures that if you specify layout parameters on an include tag you also specify layout_width and layout_height, since otherwise the other layout parameters will be ignored (helps uncover problems like this stackoverflow question)

    • A couple of app compat library checks:

      • Ensures that when using the appcompat library, you call the right methods - e.g. getSupportActionBar() instead of getActionBar(). NOTE: This lint check may incorrectly report issues in projects which are not using AppCompat at all. This bug has been fixed and will appear in 0.5.9.

      • Ensures that your menu resource files are using the correct form of showAsAction. A frequent problem for developers manually adding or removing app compat dependencies was forgetting to change between android:showAsAction and app:showAsAction. Worse yet, using the app: namespace one without appcompat could result in an aapt crash. Lint now validates these files.

    • A locale folder check which ensures that you are using the correct ISO code for a couple of locales where there is a more modern ISO code but where the code is not yet the right one to use

    • A check to ensure that you are not calling WebView#addJavascriptInterface on platforms lower than API 17

    • A check which discourages use of signatureOrSystem level permissions

    • Several checks that have only been available from the lint command line (because they rely on analyzing bytecode, which is not available inside Studio where there is no compile-on-save) have been ported to run incrementally in the editor in Studio. This includes the Parcel creator check, the view constructor check, the wrong draw/layout call check, and the valid fragment check.

  • Import: When editing build.gradle files under the project root which have not been imported into the project, there is an editor banner warning you that it's missing and offering to import it

  • Run Configurations: Improved "reuse this device" handling: Show device chooser again if the set of available devices has changed

  • Many, many bug fixes!

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处,尊重他人劳动共创开源社区。
转载请注明:文章转载自 开源中国社区 [http://www.oschina.net]
本文标题:Android Studio 0.5.8 发布
分享
评论(9)
最新评论
0

解决编译速度问题再用。现在用是浪费生命。

0

版本帝

0

我一直在用idea,android studio虽然还不成熟,但已经很好了。

0

还是继续用我的idea.

0

发布在加速,何时出正式版

0

一直用IDEA

0

又。。更新了

0

引用来自“夏悸”的评论

卡得要命

这个还好,Eclipse更卡。
0

卡得要命

顶部