I have a custom adapter
where I override the isEnabled()
method.
I have noticed that when the method gets called, it's called on, touch down and on, touch up. This is kind of irritating if you want to perform some action.
Lets say you show a Toast effect. The effect will flash up twice.
Example:
@Override
public boolean isEnabled(int position) {
Toast.makeText(mContext, "Hello", Toast.LENGTH_SHORT).show(); // this will flash up twice
return true;
}
Is there a way of disabling the touch down for the isEnabled()
method?