I have implemented an onclick functionality on textview, tries to open another activity view. But OnClick functionality is not working on textview.
Here is my code:

**login.xml**

```
<TextView
            android:id="@+id/link_signup"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_marginBottom="24dp"
            android:cursorVisible="true"
            android:gravity="center"
            android:text="@string/signUp_text"
            android:textSize="18sp" />

```

**LoginActivity.java**

```
 protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_login);
    // Set up the login form.
    mEmailView = (AutoCompleteTextView) findViewById(R.id.username);
    populateAutoComplete();

    mPasswordView = (EditText) findViewById(R.id.password);
    mPasswordView.setOnEditorActionListener(new TextView.OnEditorActionListener() {
        @Override
        public boolean onEditorAction(TextView textView, int id, KeyEvent keyEvent) {
            if (id == EditorInfo.IME_ACTION_DONE || id == EditorInfo.IME_NULL) {
                attemptLogin();
                return true;
            }
            return false;
        }
    });

    Button mEmailSignInButton = (Button) findViewById(R.id.login_button);
    mEmailSignInButton.setOnClickListener(new OnClickListener() {
        @Override
        public void onClick(View view) {
            attemptLogin();
        }
    });

    final TextView mSignUpButton = (TextView) findViewById(R.id.link_signup);
    mSignUpButton.setOnClickListener(new View.OnClickListener(){
        @Override
        public void onClick(View view){
            mSignUpButton.setTextColor(Color.RED);
            attemptSignUp(view);
        }
    } );

    mLoginFormView = findViewById(R.id.login_form);
    mProgressView = findViewById(R.id.login_progress);
}
public void attemptSignUp(View view){

     Intent intent = new Intent(getApplicationContext(), SignupActivity.class);
     startActivityForResult(intent, REQUEST_SIGNUP);
}

```

Please advise what is wrong in my code. Thanks in advance