title: Android EditText field like button
body: <p>I am trying to cope with one (seemed to be)  smalll thing. In my app I've got one activity with two <code>EditText</code> fields. </p>
  
  <p>I want one of them to be normall field (etNormal), and the other (etButton) behave more like button, so when you touch it, the keybord is not shown but instead the sliding drawer is opened. If sliding drawer is opened and you will press the normall edittext sliding drawer will hide.</p>
  
  <p>I've tried adding <code>OnClickListener</code> and <code>OnTouchListener</code> (not in same tries) to both with condition if etButton was clicked/touched open sliding drawer, if not then close.</p>
  
  <p>The outcome was strange. When it was OnTouchListener test it was more like toggle, so when I pressed one drawer opens and on another close. When it came to OnClickListener I needed to press each edtitext twice to get action done.</p>
  
  <p>And to hide keybord in etButton I am using <code>setInputType(InputType.TYPE_NULL);</code>. I've tried also <code>setEnabled(false);</code> but then I was even unable to click/touch it. The one defect of currently used method is when I am changing click from etNormal to etButton, the keyboard is still shown and it doesn't hide.</p>
  
  <p>So, can anyone tell me what I can do to achive my goal?</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>I've erad your current suggestions and modified a little my code, but still it is not working.</p>
  
  <p>This is a part of it where I am assigning OnTouchListener:</p>
  
  <pre><code>OnTouchListener touchListener = new OnTouchListener() {
  
              @Override
              public boolean onTouch(View v, MotionEvent ev) {
                  if(v==etButton &amp;&amp; ev.getAction()==MotionEvent.ACTION_DOWN) {
                      slidingDrawer.animateOpen();
                  }else {
                      slidingDrawer.animateClose();
                  }
                  return false;
              }
          };
  
          etNormal1.setOnTouchListener(touchListener);
          etNormal2.setOnTouchListener(touchListener);
          etButton.setOnTouchListener(touchListener);
  </code></pre>
  
  <p>Also in etButton declaration in XML layout file I have:</p>
  
  <pre><code>android:focusable="false"
  </code></pre>
  
  <p>But now, on etButton touch nothing hapens (only sliding drawer hides if was opened), and when etNormal1 or 2 is touched sliding drawer shows up or hides depending what was first (in other words toggel).</p>
  
  <p>Any idea, what is wrong here?</p>