Ejemplo n.º 1
0
 @Override
 public void onClick(View v) {
   if (v.getId() == R.id.wp8_menu) {
     mLauncher.changeAllAppMode(false);
     mLauncher.closeAllApps(true);
     mLauncher.showAllApps(true);
   } else if (v.getId() == R.id.wp8_arrow) {
     mLauncher.closeAllApps(true);
   }
 }
Ejemplo n.º 2
0
  public boolean onKey(View v, int keyCode, KeyEvent event) {
    if (!isVisible()) return false;

    switch (keyCode) {
      case KeyEvent.KEYCODE_BACK:
        mLauncher.closeAllApps(true);
        return false;
      default:
        return false;
    }
  }
Ejemplo n.º 3
0
  public boolean onItemLongClick(AdapterView<?> parent, View view, int position, long id) {
    if (!view.isInTouchMode()) {
      return false;
    }

    ApplicationInfo app = (ApplicationInfo) parent.getItemAtPosition(position);
    app = new ApplicationInfo(app);

    mDragController.startDrag(view, this, app, DragController.DRAG_ACTION_COPY);
    mLauncher.closeAllApps(true);

    return true;
  }