List of usage examples for android.view MotionEvent actionToString
public static String actionToString(int action)
From source file:org.gearvrf.weartouchpad.WearStatusActivity.java
private String getPrintableEvent(MotionEvent event) { StringBuilder builder = new StringBuilder(); if (VERSION.SDK_INT >= VERSION_CODES.KITKAT) { builder.append(MotionEvent.actionToString(event.getAction())); } else {/* w ww. j av a 2s. c o m*/ builder.append(event.getAction()); } builder.append(", X=").append(String.format("%.2f", event.getX())).append(", Y=") .append(String.format("%.2f", event.getY())); return builder.toString(); }