title: Show Context Menu With Short Click not Long Click
body: <p>I have a problem with the contextual menu, I have a control "ImageButton" when you make a long click displays a context menu.</p>
  
  <p>I need to display the contextual menu with a short click, not a long click, is this possible?</p>
  
  <p>This is the code I currently use, the menu works perfectly.</p>
  
  <pre><code>    private ImageView btnRutas;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          requestWindowFeature(Window.FEATURE_NO_TITLE);
          setContentView(R.layout.fclientes);
  
          btnRutas =(ImageView)findViewById(R.id.btnRutas);
  
          btnRutas.setOnClickListener(this);
  
          registerForContextMenu(btnRutas); 
  
      }
  
      @Override
      public void onCreateContextMenu(ContextMenu menu, View v, ContextMenuInfo menuInfo) {
  
          if(v.getId()== R.id.btnRutas) {
  
              menu.setHeaderIcon(android.R.drawable.ic_menu_more);
              menu.setHeaderTitle("Rutas");
              menu.add(0, 0, 0, "Ruta 1");
  
          } 
  
          super.onCreateContextMenu(menu, v, menuInfo);
      } 
  
      @Override
      public boolean onContextItemSelected(MenuItem item) {
  
      switch (item.getItemId()){
  
      case 0:
  
          function();
  
          }
  
      }
  </code></pre>
  
  <p>Thanks in advance.</p>