Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Add support annotations to ViewMarker and ViewMarkerOptions #5167

Closed

Description

@tobrun

We need to add support annotations to the classes related to view annotations. This will make the life of users implementing the view annotations API a bit more easy hence this will result in showing lint warnings when they try to do something that isn't supported.

Example:

    public void setAlpha(float alpha) {
        this.alpha = alpha;
        if (markerViewManager != null) {
            markerViewManager.animateAlpha(this, alpha);
        }
    }

This will become:

   public void setAlpha(@FloatRange(from=0.0, to=1.0) float alpha) {
        this.alpha = alpha;
        if (markerViewManager != null) {
            markerViewManager.animateAlpha(this, alpha);
        }
    }

And will result in a lint warning when the parameters do not match:

screen shot 2016-05-27 at 09 08 42

Activity

  1. added
    Android
    annotations
    on May 27, 2016
  2. tobrun commented on Jun 6, 2016

    @tobrun
    MemberAuthor

    Merged with #5252 onto the release-v4.1.0 branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Androidannotations

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions