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

Touches with @Touch  #728

Closed
Closed

Description

@shanuka

i have get this error when using @touch

the second parameter must be a android.view.View, not a android.view.MotionEvent

@Touch(R.id.signup_address)
    void onTouch( View view,MotionEvent event) {

    }

when swipe parameters there was error in generated file

Activity

  1. DayS commented on Sep 20, 2013

    @DayS
    Contributor

    For the first point, we should handle parameters regardless what order they are.

    Could you give us the type on your annotated view ? Because the generated code should work fine.

  2. dodgex commented on Sep 22, 2013

    @dodgex
    Member

    I can't create a pull request yet, as my fork is not in the repository list for pull request creation.

    but here is my commit for this: https://github.com/dodgex/androidannotations/commit/347cb62f7c0b38c78d1d82126d4f2a509675c6c3

    I hope it is Ok.

  3. dodgex commented on Sep 23, 2013

    @dodgex
    Member

    i just found that i have to start the PR from my fork...

    so here is the pull request... #736

  4. added a commit that references this issue on Oct 4, 2013
  5. DayS commented on Oct 4, 2013

    @DayS
    Contributor

    I merged it for 3.0 instead of 3.1.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions