-1

In .xml file

<TextView
    android:id="@+id/sgn"
    android:layout_width="match_parent"
    android:layout_height="wrap_content"
    **android:text="Sign Up"**>
</TextView>
Kaushik
  • 6,150
  • 5
  • 39
  • 54
Methmi
  • 3
  • 1
  • Do you want to show a underline for this text view – Kaushik Apr 08 '21 at 07:17
  • 1
    Does this answer your question? [How to make a textview text link clickable](https://stackoverflow.com/questions/43349822/how-to-make-a-textview-text-link-clickable) – AIK Apr 08 '21 at 07:22

1 Answers1

0
sgn.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                startActivity(new Intent(getApplicationContext() , RegisterActivity2.class));
                finish();
            }
        });
  • 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 – MRazaImtiaz Apr 08 '21 at 07:24