Ejemplo n.º 1
0
  public static boolean inputKeyFunction(int key) {
    if (key < 0) return false;
    if (key >= functionKeyActions.length) return false;

    Action action = functionKeyActions[key];
    if (action == null) return false;
    return action.performAction();
  }
Ejemplo n.º 2
0
 @Override
 public void onClick(View view) {
   final Object tag = view.getTag();
   if (tag instanceof Action) {
     final Action action = (Action) tag;
     action.performAction(view);
   }
 }