Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6569059
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:34:45+00:00 2026-05-25T14:34:45+00:00

In my app, I have stored list of words in one string array and

  • 0

In my app, I have stored list of words in one string array and their definitions in another array in strings.xml. I want to underline the words if any of the definitions contains other word. So before this activity, in the background what I did, for every description , i searches the array of word list, if it matches replace the word with a hyperlinked word.

And on click of the word, it should it should go to word with corresponding definition. The activity contains 2 text views, one with word and definitions. How can I do that? Please help ..

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T14:34:45+00:00Added an answer on May 25, 2026 at 2:34 pm

    android.text.util.Linkify is your friend. It will search for occurence of string, using some match filter, of which implementation is up to you. Then it will produce Spannable string containing clickable spans (hyperlinks).
    To display the result, you can use for example WebView, but for displaying Spannable in WebView, you must first convert it to Html using android.text.Html.toHtml(), then display it as html text.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an app that uses a UITableView to list documents which are stored
I have a list of categories that are stored as Strings in an ArrayAdapter
I have an app that has some configuration settings stored in SharedPreference. Now I
I have an app that generates invoices in the form of PDF files stored
I have a nascent bridge scoring app that is meant to be stored locally
I have other pages within my app preferences which are stored as separate files
In a Ruby on Rails app, we have some details which are stored as
In my android app I have a search screen. The content is stored in
I am designing a list-based app in C# WinForms where I want to store
I have an app that lists a number of venues which have their latitude

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.