use of android.view.View.OnGenericMotionListener in project platform_frameworks_base by android.
the class Interaction method register.
public static void register(View v, final Callback callback) {
v.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
v.setOnGenericMotionListener(new OnGenericMotionListener() {
@Override
public boolean onGenericMotion(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
}
use of android.view.View.OnGenericMotionListener in project android_frameworks_base by crdroidandroid.
the class Interaction method register.
public static void register(View v, final Callback callback) {
v.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
v.setOnGenericMotionListener(new OnGenericMotionListener() {
@Override
public boolean onGenericMotion(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
}
use of android.view.View.OnGenericMotionListener in project android_frameworks_base by AOSPA.
the class Interaction method register.
public static void register(View v, final Callback callback) {
v.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
v.setOnGenericMotionListener(new OnGenericMotionListener() {
@Override
public boolean onGenericMotion(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
}
use of android.view.View.OnGenericMotionListener in project android_frameworks_base by DirtyUnicorns.
the class Interaction method register.
public static void register(View v, final Callback callback) {
v.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
v.setOnGenericMotionListener(new OnGenericMotionListener() {
@Override
public boolean onGenericMotion(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
}
use of android.view.View.OnGenericMotionListener in project android_frameworks_base by ResurrectionRemix.
the class Interaction method register.
public static void register(View v, final Callback callback) {
v.setOnTouchListener(new OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
v.setOnGenericMotionListener(new OnGenericMotionListener() {
@Override
public boolean onGenericMotion(View v, MotionEvent event) {
callback.onInteraction();
return false;
}
});
}
Aggregations