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

Touch Listener Support #12

Open
Open
@GustavoCostaW

Description

@GustavoCostaW

Hello, I would like to get draggable event when the my widget_chathead receive drag, checking the README I see Click Listener.

final LinearLayout iconView = (LinearLayout) inflater.inflate(R.layout.widget_chathead, null);
         iconView.setOnClickListener(new View.OnClickListener() {
             @Override
             public void onClick(View v) {
                //works fine
             }
         });

It's works! but I want get event when user drag the widget, ex:



         iconView.setOnTouchListener(new View.OnTouchListener() {
             @Override
             public boolean onTouch(View v, MotionEvent event) {
                 //not works :(
                 return false;
             }
         });

Someone can help-me? Thank you

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions