title: Detect what button was pressed?
body: <p>I have 26 different buttons containing alphabets. In which I want if button that contains D, I, L should show the image button if any other button is clicked then something else happens. Below is what I have tried but this doesn't seem to be working. I am aware of onTouchKeyListener() but it might be really huge of coding.</p>
  
  <pre><code>imgD.setVisibility(View.INVISIBLE);
  imgI.setVisibility(View.INVISIBLE);
  imgL.setVisibility(View.INVISIBLE);
  
              if(d.isPressed()) {
                  imgD.setVisibility(View.VISIBLE);
              }
  </code></pre>