GithubHelp home page GithubHelp logo

bhanditz / idea-anddevkit-plugin Goto Github PK

View Code? Open in Web Editor NEW

This project forked from liweijieok/idea-anddevkit-plugin

0.0 2.0 0.0 2.18 MB

一个 IDEA、Android Studio 中使用的安卓开发助手插件。

License: MIT License

Kotlin 85.43% Java 14.57%

idea-anddevkit-plugin's Introduction

Android 开发助手(Android DevKit)

功能

  • 支持对送翻多语言进行一键同步操作;
  • 支持对 Android res 下 string 的重复值静态检测及建议通过 @string/[duplicate] 替换;
  • 支持对各种内部类直接访问外部类 private 属性建议修改为 protected 属性来减少一个 access$0 包装方法数;
  • 支持对各种内部类直接访问外部类 private 方法建议修改为 protected 方法来减少一个 access$0 包装方法数;
  • 支持配置常用网站便捷访问;
  • 支持 Java Class Reference Element PopWindow 增强型提示(类路径),尽可能的引用透明化,不用每次看类在哪个路径时再执行跳转操作;

默认快捷键(可在 Setting 中修改)

  • 多语言同步:control alt 0
  • 项目常用网站:control alt 1
  • 安卓静态检测:control alt 2

操作演示

送翻前多语言重复性静态检查及纠正建议提示操作,譬如一个 string_i18n.xml 字符串文件中存在相同值的字符串,这对送翻来说是浪费人力财力。

送翻前多语言同步及格式化,方便给翻译公司提供 xml 文件,然后翻译后直接回来入库,避免出现意外。

对各种内部类直接访问外部类 private 属性和方法建议修改为 protected 来减少一个 access$0 包装方法数的操作。

项目相关常用网站 Android Studio 应用内快捷访问,提升开发效率。

支持 Java Class Reference Element PopWindow 增强型提示(类路径),尽可能的引用透明化,比用每次看类在哪个路径时再执行跳转操作。

注意事项

多语言源文件书写格式必须是标准 XML,一个完整的 <string>xxxxx<string/> 中必须不准换行,同步原理为按行同步,可以参照如下格式。

<resources>
    <string name="app_name">My Application</string>
    <string name="app_name1">@string/app_name</string>
    
    <!-- array 必须放在单独的 arrays.xml 等文件中,而且必须引用要国际化的文件,不允许直接给 item 写字符串值 -->
    <array name="test">
        <item>@string/app_name</item>
    </array>
</resources>

参考文档

Android Developer Performance Tips: Consider Package Instead of Private Access with Private Inner Classes

idea-anddevkit-plugin's People

Contributors

yanbober avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.