编码风格标准为Android [英] Coding Style Standards for Android

查看:85
本文介绍了编码风格标准为Android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有针对Android的一些标准code造型(也许一本书吗?)(造型XML,Java编程,文件命名,等...)

I would like to know if there is some standard code styling for Android(maybe a book?) (styling XML , Java programming , file naming , etc...)

推荐答案

还有就是code样式规则很好地描述的此处

There is a good description of code style rules here.

如果要强制执行这个规则,而无需记住所有的人,而你使用的是Eclipse,那么你可以使用Android团队提供的格式规则:<一href="https://raw.github.com/android/platform_development/master/ide/eclipse/android-formatting.xml">android-formatting.xml. > code风格 - >格式化,单击导入 - 使用preferences-> Java的,它只是导入Eclipse。

If you want to enforce this rules without remembering all of them, and you are using eclipse then you can use formatting rules provided by Android team: android-formatting.xml. Just import it into eclipse using Preferences->Java->Code Style->Formatter, click Import.

这篇关于编码风格标准为Android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆