hi
Im new to the Touchscreen programming please give me some help!
I have the:
public class PhotoEditDrawView extends ImageView {
and i have the:
@Override
public boolean onTouchEvent(MotionEvent event) {
In the constructor i have the :
setOnLongClickListener(new OnLongClickListener() {
@Override
public boolean onLongClick(View v) {
Toast.makeText(ctx, "hello hello ", Toast.LENGTH_SHORT).show();
return true;
}
});
The onLongClick
is never fired. What am i doing wrong?
Everything in the onTouchEvent
is working good.
What i want to do is start an Activity with @android:style/Theme.Dialog
when pressing 1-2 second.