0

I am trying to create an Android app with php SQL database, which will have a paragraph with some news.
I managed to connect MySQL to Android app and the data is showing in app.

The problem is that I am trying to create a clickable word.
In a paragraph clicking any word to show a toast with the same word.

Thank you!

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115

1 Answers1

0

I recommend that you take a look at Android's Spannable. It allows for styling text and could give you the ability to make certain words clickable. Here is a blog talking about Spannable. Here is the official documentation.

ChillBroDev
  • 154
  • 1
  • 7