编码风格标准为Android风格、标准、Android

由网友(怂)分享简介:我想知道是否有针对Android的一些标准code造型(也许一本书吗?)(造型XML,Java编程,文件命名,等...)I would like to know if there is some standard code styling for Android(maybe a book?) (styling XML...

我想知道是否有针对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团队提供的格式规则: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.

阅读全文

相关推荐

最新文章