Android如何提高编程效率——偷懒

人类在起源和发展过程中,体形、使用工具和是否着衣这三个方面逐渐发生了变化:从半直立行走到直立行走;从不会使用工具,到使用天然工具,再到制造和使用简单工具,直到制造和使用包括电脑在内的各种复杂的现代工具。马克思哲学中,人类比其他动物聪明,因为会使用工具。有人说猿和猩猩也会使用工具。对猿会使用工具,我们是程序员我们也懂得使用工具。使用工具我们能更快速的完成目标,或者完成我们徒手不可能完成的目标。

Android studio插件

以下工具均可在Android studio中进行添加,添加步骤:
- 点击File,选择Settings,或者按快捷键Ctrl+Alt+S打开设置界面
- 选择Plugins,可以看到我们的插件列表
- 搜索你想要的插件,如Gson插件
- 选择GsonFormat,然后Install plugins,安装插件。安装插件后,需要重启Android Studio。安装好后可以看出来跟工具自带插件的区别。点击GsonFormat可以选择卸载掉插件。

1、Android ButterKnife Zelezny
- 推荐理由:配合ButterKnife实现注解,从此不用写findViewById,想着就爽啊。在Activity,Fragment,Adapter中选中布局xml的资源id自动生成butterknife注解。
- 使用方法:Ctrl+Shift+B选择图下所示选项

2、Android Code Generator
- 推荐理由:根据布局文件快速生成对应的Activity,Fragment,Adapter,Menu。
- 使用方法:图下所示选项

3、GsonFormat
- 推荐理由:快速将json字符串转换成一个Java Bean,免去我们根据json字符串手写对应Java Bean的过程。
- 使用方法:快捷键Alt+S也可以使用Alt+Insert选择GsonFormat

4、GradleDependenciesHelperPlugin
- 推荐理由:maven gradle 依赖支持自动补全。

5、eventbus-intellij-plugin
- 推荐理由:Eventbus作为Android优化的发布/订阅事件总线。主要功能是替代Intent,Handler,BroadCast在Fragment,Activity,Service,线程之间传递消息.优点是开销小,代码更优雅。以及将发送者和接收者解耦。但是在实际运用中,例如一些方法类等我们可以通过ctrl+左键直接定位到使用的地方,但是Eventbus不行。我们可以通过eventbus-intellij-plugin解决这一麻烦。
- 使用方法:如图

6、Android Parcelable code generator
- 推荐理由:JavaBean序列化,快速实现Parcelable接口。
- 使用方法:如图

7、Android Postfix Completion
- 推荐理由:可根据后缀快速完成代码,这个属于拓展吧,系统已经有这些功能,如sout、notnull等,这个插件在原有的基础上增添了一些新的功能。
- 使用方法:如图

8、ECTranslation
- 推荐理由:Android Studio 翻译插件,可以将英文翻译为中文。让我们可以更快的阅读三方源码。
- 使用方法:如图

9、Lifecycle Sorter
- 推荐理由:可以根据Activity或者fragment的生命周期对其生命周期方法位置进行先后排序。
- 使用方法:快捷键Ctrl + alt + K

10、CodeGlance
- 推荐理由:在右边可以预览代码,实现快速定位。
- 使用方法:如图

11、JsonOnlineViewer
- 推荐理由:在Android Studio中请求、调试接口。
- 使用方法:如图

12、ADB WIFI
- 推荐理由:使用wifi无线调试你的app,无需root权限。
- 使用方法:如图

其它工具

1、LeakCanary
- 推荐理由:帮助你在开发阶段方便的检测出内存泄露的问题,使用起来更简单方便。
- 使用方法:如图

2、jadx-gui
- 推荐理由:什么最为Android开发者你不会反编译?那我只能说你需要学习了。
- 使用方法:jadx-gui反编译apk

3、fiddler
- 推荐理由:Fiddler是一款非常流行并且实用的http抓包工具,它的原理是在本机开启了一个http的代理服务器,然后它会转发所有的http请求和响应,因此,它比一般的firebug或者是chrome自带的抓包工具要好用的多。不仅如此,它还可以支持请求重放等一些高级功能。显然它是可以支持对手机应用进行http抓包的。
- 使用方法:如何使用Fiddler进行抓包

4、Sublime text
- 推荐理由:Sublime Text是HTML文本编辑器,具有漂亮的用户界面和强大的功能,可自定义键绑定菜单和工具栏。Sublime Text 的主要功能包括拼写检查、书签、完整的 Python API,Goto 功能、即时项目切换、多选择、多窗口等。

5、Lantern
- 推荐理由:Lantern是一个免费的应用程序。它能帮助你随时随地快速、可靠、安全地访问互联网。说白了,翻墙。。。
- 使用方法:官网下载有教程

6、Licecap
- 推荐理由:LICEcap 是一款屏幕录制工具,支持导出 GIF 动画图片格式,轻量级、使用简单,录制过程中可以随意改变录屏范围。
- 使用方法:如图

7、Android开发助手
- 推荐理由:大幅提高 Android 开发调试效率的工具 App ,通过它你可以一键快速开关常用的开发者选项功能,能够快速查看系统软硬件信息,能够快速切换系统语言等。
- 使用方法:Android 开发助手 1.3.0 版

本文作者:Rance935本文出处:Android如何提高编程效率——偷懒转载请在开头注明作者详细信息和本文出处
欢迎关注我的微信公众号和QQ群,分享Android 开发和互联网内容
Android技术分享:群号534813930
微信号:androidparks
公众号:AndroidParks

评论

  • Department Of Education回复

    Hey, you used to write excellent, but the last several posts have been kinda boring¡K I miss your super writings. Past several posts are just a little out of track! come on!

  • Garden Design回复

    Good post and right to the point. I don't know if this is truly the best place to ask but do you people have any ideea where to get some professional writers? Thanks 😊

  • http://www.justbingosites.co.uk/回复

    You made some decent points there. I looked on the web to learn more about the issue and found most individuals will go along with your views on this web site.

  • Carlos Eduardo Veiga回复

    Hi would you mind letting me know which web host you're working with? I've loaded your blog in 3 different web browsers and I must say this blog loads a lot faster then most. Can you recommend a good internet hosting provider at a honest price? Thanks a lot, I appreciate it!|

  • golden goose回复

    you have an important blog right here! would you like to make some invite posts on my weblog?

  • CheplanovaGergo回复

    vendita viagra forum

    http://viagralms.com/ - buy viagra online

    <a href="http://viagralms.com/">viagra cheap</a>

    safest viagra for men

  • yeezy boost 350 v2回复

    I am only commenting to let you understand of the extraordinary discovery my wife's daughter encountered studying your blog. She figured out some details, most notably what it is like to have a wonderful helping heart to get folks completely completely grasp specific problematic issues. You actually exceeded my expected results. Thank you for displaying these great, safe, educational and even cool tips on that topic to Emily.

  • VladilenGergo回复

    prices viagra generic

    <a href=http://viagraomz.com/>online viagra</a>

    <a href="http://viagraomz.com/">viagra online</a>

    viagra pfizer 100 mg

  • CheplanovaGergo回复

    very good site viagra prices

    http://viagralms.com/ - viagra cheap

    <a href="http://viagralms.com/">buy generic viagra</a>

    viagra sin receta chile

  • Education Games回复

    You actually make it seem so easy along with your presentation however I in finding this matter to be actually something that I think I would by no means understand. It kind of feels too complex and very vast for me. I'm looking forward to your next submit, I will attempt to get the hang of it!

  • DIY Projects回复

    Heya i am for the first time here. I came across this board and I find It really useful & it helped me out a lot. I hope to give something back and help others like you aided me.

  • wedding photography回复

    Thank you for any other informative web site. Where else may just I get that kind of info written in such a perfect way? I've a mission that I'm simply now working on, and I've been at the glance out for such info.

  • Busy At Home回复

    This is really interesting, You are a very skilled blogger. I have joined your rss feed and look forward to seeking more of your wonderful post. Also, I've shared your website in my social networks!

  • Kitchen Decor回复

    I really appreciate this post. I have been looking all over for this! Thank goodness I found it on Bing. You've made my day! Thx again

  • VladilenGergo回复

    viagra by fedx

    <a href=http://viagraomz.com/>cheap viagra online</a>

    <a href="http://viagraomz.com/">viagra cheap</a>

    viagra en farmacit

  • CheplanovaGergo回复

    the best choice viagra

    http://viagralms.com/ - viagra online

    <a href="http://viagralms.com/">canadian viagra</a>

    viagra per polmon

  • VladilenGergo回复

    authorized viagra dealers

    <a href=http://viagraomz.com/>buy viagra</a>

    <a href="http://viagraomz.com/">online viagra</a>

    viagra pill cost in india

  • Dadado Veig回复

    It's going to be finish of mine day, however before finish I am reading this great paragraph to increase my experience.|

  • visit website回复

    I relish, cause I discovered exactly what I used to be having a look for. You have ended my four day long hunt! God Bless you man. Have a great day. Bye

  • CheplanovaGergo回复

    viagra en mano barcelona

    http://viagralms.com/ - buy viagra online

    <a href="http://viagralms.com/">buy generic viagra</a>

    viagra sans ordonnances france

  • Liquid web Discount Coupon codes回复

    Excellent goods from you, man. I've understand your stuff previous to and you are just extremely great.

    I really like what you have acquired here, really like
    what you're saying and the way in which you say it.
    You make it enjoyable and you still take care of to keep it smart.
    I can not wait to read far more from you. This is really a terrific web site.

  • MakritskayaGergo回复

    viagra urdu

    <a href=http://viagraoail.com/>buy viagra online</a>

    <a href="http://viagraoail.com/">viagra online</a>

    wirkung von viagra steiger

  • CheplanovaGergo回复

    viagra coupon codes

    http://viagralms.com/ - buy viagra online

    <a href="http://viagralms.com/">buy generic viagra</a>

    viagra sklep

  • click here回复

    The Silent Shard This may probably be fairly handy for a few of your respective job opportunities I decide to never only with my website but

  • Schools回复

    Hello There. I found your blog using msn. This is an extremely well written article. I’ll make sure to bookmark it and come back to read more of your useful information. Thanks for the post. I will certainly return.

  • Garden Ideas回复

    Of course, what a splendid site and informative posts, I definitely will bookmark your website.Best Regards!

  • rent a car回复

    We're a group of volunteers and starting a new scheme in our community. Your website offered us with valuable information to work on. You have done an impressive job and our whole community will be thankful to you.

  • MakritskayaGergo回复

    viagra generic 2016

    <a href=http://viagraoail.com/>online viagra</a>

    <a href="http://viagraoail.com/">cheap viagra</a>

    cheap viagra 100mg online

  • Garden Store回复

    Thank you for the sensible critique. Me & my neighbor were just preparing to do a little research on this. We got a grab a book from our local library but I think I learned more clear from this post. I am very glad to see such great info being shared freely out there.

  • Common Law回复

    You really make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand. It seems too complicated and very broad for me. I'm looking forward for your next post, I will try to get the hang of it!

  • go to blog回复

    Im thankful for the blog post.Thanks Again. Really Cool.

  • Continuing Education回复

    Thank you a lot for providing individuals with an exceptionally wonderful chance to discover important secrets from this website. It is always very good and packed with a great time for me personally and my office colleagues to search the blog not less than thrice in one week to study the latest guidance you have got. And indeed, I am just always impressed for the surprising knowledge you serve. Selected 3 tips in this post are really the most beneficial we have all ever had.

  • Garden回复

    I haven¡¦t checked in here for a while because I thought it was getting boring, but the last few posts are good quality so I guess I¡¦ll add you back to my everyday bloglist. You deserve it my friend 😊

  • Jual Obat Sipilis di Denpasar Bali回复

    Yoᥙ can certainlү see your enthusiasm witһin the
    aгticle you write. The arena hopes for more pаssionatе writers
    like yyou whoo aren't afraid to say how theʏ believe.
    All the time follow your heart.

  • Divorce回复

    Terrific paintings! This is the kind of info that are supposed to be shared across the web. Disgrace on Google for not positioning this put up higher! Come on over and consult with my web site . Thanks =)

  • outdoor clothing回复

    Well I definitely liked studying it. This tip offered by you is very effective for good planning.

  • House回复

    Good ¡V I should definitely pronounce, impressed with your website. I had no trouble navigating through all the tabs as well as related information ended up being truly easy to do to access. I recently found what I hoped for before you know it in the least. Quite unusual. Is likely to appreciate it for those who add forums or anything, website theme . a tones way for your customer to communicate. Nice task..

  • Luiz Gastão Bittencourt回复

    This design is wicked! You obviously know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Fantastic job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!|

  • CheplanovaGergo回复

    click now real viagra

    http://viagralms.com/ - viagra cheap

    <a href="http://viagralms.com/">online viagra</a>

    what viagra does feel

  • LenaGergo回复

    viagra price india 2010

    <a href=http://norxcheapviagraf.com/>buy viagra online</a>

    <a href="http://norxcheapviagraf.com/">generic viagra online</a>

    viagra prices usa

  • Department Of Education回复

    Hiya, I'm really glad I have found this info. Nowadays bloggers publish only about gossips and internet and this is actually annoying. A good blog with exciting content, this is what I need. Thank you for keeping this web-site, I will be visiting it. Do you do newsletters? Can't find it.

  • beautiful beach回复

    I've been surfing online more than 3 hours today, yet I never found any interesting article like yours. It’s pretty worth enough for me. Personally, if all site owners and bloggers made good content as you did, the internet will be much more useful than ever before.