Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

4点建议 #2

Open
Open
@Deep-In-It

Description

1、layout_marginStart、layout_marginHorizontal在style中书写时存在使用局限。
2、关于全局变量命名不提倡使用mInstrument这种形式,模型使用如果同时出现set、get方法时,使用public更便捷。理由参考《代码整洁之道》。
3、资源ID命名上不建议带上模块名称(layout除外)。存在重复使用的string,带有模块名称并不合适。建议使用资源的属性功能去命名,这样虽然可能损失了某种程度上的美观,但是总体来说,提升代码开发效率,不必花时间去翻找重复的资源。
4、部分规范不必完全遵守,应根据实际出发。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /