-1

In .xml file

<TextView android:id="@+id/sgn" android:layout_width="match_parent" android:layout_height="wrap_content" **android:text="Sign Up"**> </TextView> 
2
  • Do you want to show a underline for this text view Commented Apr 8, 2021 at 7:17
  • 1
    Does this answer your question? How to make a textview text link clickable Commented Apr 8, 2021 at 7:22

1 Answer 1

0
sgn.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { startActivity(new Intent(getApplicationContext() , RegisterActivity2.class)); finish(); } }); 
Sign up to request clarification or add additional context in comments.

1 Comment

This Answer is not related to the question he asked about the link which refers to the weblink, not to another activity or screen of an android app

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.