Skip to content

Naming conventions #9

@vpratfr

Description

@vpratfr

Please stick to the Java / Android naming conventions. In this case, it would be good to rename the call back interface:

public interface OnRibbonMenuSelectedListener {
    public void onRibbonMenuItemClick(View item);
}
  • Class name starts with an upper-case letter
  • Class is a listener (as for instance the DialogInterface.OnClickListener)
  • Method name starts with a lower case-letter (and "on" to denote an event)
  • We pass the complete view if possible, not just the ID. That way you can store data within the view if needed (in the view tag for instance).

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