- 1、本文档共12页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
android 编程规范(Android编程规范)
android 编程规范(Android编程规范)
Why coding specifications are needed?
Coding specifications are especially important for programmers for several reasons:
80% of the cost of a software life cycle is maintenance
Almost none of the software is maintained by the original developer throughout its lifecycle
Coding standards can improve the readability of software and allow programmers to understand new code as quickly and thoroughly as possible
If you release the source code as a product, you need to make sure that it is packaged well and clearly, just like any other product you have built
name
Packet naming
Naming rule: the prefix of a unique package name is always all lowercase ASCII letters and is a top-level domain name, usually com, edu, gov, mil, net, org. The subsequent section of the package name is not the same according to the internal naming conventions of the different organizations. Such naming conventions may distinguish between departments (Department), projects (project), machines (machine), or login (names) names in the form of a specific directory name.
For example: com.moleader.nloc.activities
Specification: packet naming must begin with com.moleader, followed by a project name (or abbreviation), followed by a module name or a hierarchical name.
For example: com.moleader. project abbreviation. Module name com.moleader.nloc.bookmark
Such as: abbreviation for com.moleader. project. Name of hierarchy com.moleader.nloc.activities
Class and interface naming
Naming rule: the class name is a noun, and the uppercase of each word is capitalized by case mixing. Try to make your class name concise and descriptive. Use full words to avoid abbreviations (unless the abbreviation is more widely used, such as URL, HTML)
Interfaces generally use able, ible, ER and other suffixes
For example: class Raster; class ImageSprite;
Specification: the class name must use the hump rule, that is, the initial letter must be capitalized. If it is a phrase, the initial letter of each word
您可能关注的文档
- 2008年福建省普通中学高中毕业班质量检查(Ordinary senior middle school in Fujian Province in 2008 graduating class quality inspection).doc
- 2007年考研英语词汇复习方法与解题技巧(2007 English vocabulary review methods and problem-solving skills).doc
- 2008年高考各地历史卷2008年普通高校招生统一考试天津卷(文综)(The college entrance examination in 2008 throughout the history 2008 college entrance examination volume of Tianjin (Wen Zong)).doc
- 2009349505708-09下行知高三语文复习计划11247(2009349505708-09 senior Chinese Xingzhi review plan 11247).doc
- 2006职教中心上半年工作总结(2006 vocational education center work summary of the first half).doc
- 2009年10月高等教育自学考试国际商务谈判试题(In October 2009, the higher education self-study exam questions of international business negotiation).doc
- 2009年1月自考马克思主义基本原理概论模拟试卷及答案2(An introduction to the basic principle of Marx's January 2009 self simulation papers and answers 2).doc
- 2009年4月贵州省高等教育自学考试日程表(In April 2009 the Guizhou province higher education self-study exam schedule).doc
- 2009年初中生物会考复习提纲(In 2009, the junior middle school biology examination review outline).doc
- 2009年名企面试题集锦之华为篇(In 2009 the HUAWEI article highlights enterprises interview questions).doc
- 【课件】测量液体和固体的密度课件+2025-2026学年人教版八年级上册物理.pptx
- 【公开课】速度的测量+(课件)2024-2025学年人教版(2024)八年级物理上册.pptx
- 【课件】解一元一次方程课件2025-2026学年++人教版七年级数学上册++.pptx
- 【课件】行程问题+课件++2025-2026学年人教版七年级数学上册+.pptx
- 【课件】直线、射线、线段+课件+2025--2026学年人教版七年级数学上册.pptx
- 【课件】透镜课件--+2025-2026学年人教版八年级上册物理.pptx
- 【课件】陪伴成长共同进步 课件--2024-2025学年高一下学期期末家长会.pptx
- 2025年中考化学总复习考点梳理讲解与训练(全).pdf
- 2025年中考道德与法治总复习专题六选择题答题方法指导与训练.pptx
- 形容词副词比较级.pptx
文档评论(0)