How can i implement button.setOnClickListener and button.setOnTouchListener simultaneously
<p>i am working on android.</p>

<p>i am creating a login button. i want that whenever i press login button then text color of that button should be changed. </p>

<p>and when this button pressed then login functionality should be performed.</p>

<p>for this i am coding like this:-</p>

<pre><code>button_login.setOnTouchListener(new View.OnTouchListener() {
  @Override
  public boolean onTouch(View arg0, MotionEvent arg1) {

    // TODO Auto-generated method stub
    int action = arg1.getAction();
    if(action == MotionEvent.ACTION_DOWN) {                          
          button_login.setTextColor(Color.parseColor("#163D74"));
          return true;
    } else if (action == MotionEvent.ACTION_UP) {
          button_login.setTextColor(Color.parseColor("#FFFFFF"));
                  return true;
    }
         return false;

    }
 });        
button_login.setOnClickListener(new Button.OnClickListener() {

    @Override

        public void onClick(View v)
            {
    // checking the functionality of login

             }
           });
</code></pre>

<p>but only onTouchListener is working. login functionality is not working.</p>

<p>please suggest me what mistake i have done. and how can i implement these both functionalities. means how can i change the color of text of button and how can i perform login functionality.</p>

<p>Thank you in advance.</p>
