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
Description
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