• Latest Code...

    Featured Post

    Implementing Hilt in a Kotlin Android Jetpack Compose Project with MVVM Architecture

     In modern Android development, maintaining a scalable codebase can be challenging, especially when it comes to dependency management. Hilt,...

    How make weblink(hyperlink) in textview in android

    Weblink or Hyperlink in textview, simple way to make it:

    Textview tv_link= (Textview)findViewById(R.id.tvLink);
    tv_link.setText("prandroid@gmail.com");
    Linkify.addLinks(tv_link, Linkify.ALL);

    or may be use this also:

    TextView tvLinkTest= (TextView) findViewById(R.id.tl);
    tvLinkTest.setMovementMethod(LinkMovementMethod.getInstance());

    next alternative method is:

    <TextView
    android:text="www.hello.com"
    android:id="@+id/TextView01"
    android:layout_height="wrap_content"
    android:layout_width="fill_parent"
    android:autoLink="web">
    </TextView>

    Happy Coding!!!

    Contact Form

    Name

    Email *

    Message *