Git Product home page Git Product logo

neuqsecurity's Introduction

安卓脚手架开发规范(Java-MVC)

布局

  • 控件命名格式为:控件缩写_(位置)_功能,具体命名规范见工作室wiki
  • 字符串、颜色全部放在资源文件中
  • 相同样式统一定义在style中
  • 避免过多的布局嵌套,尽量使用相对布局
  • 引入的图片单张不能超过500k,尽量减少打包体积

Java

  • 包名全小写,类名大驼峰,方法、变量名小驼峰。
  • 常量全大写配合下划线
  • 静态变量加s前缀,成员变量加m前缀(AS自动配置)
  • 所有活动根据需要统一继承BaseActivityBaseToolActivity
  • 避免可能出现的内存泄漏,用LeakCanary进行内存检查

其他

  • 慎引第三方库,否则可能导致打包失败

neuqsecurity's People

Contributors

cherryyang05 avatar

Watchers

James Cloos 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.