5

Just how the facebook app does it. Multiple clickable texts in one textView.

I tried the FlowLayout and multiple texviews but still the texview shifts to another line when the text exceeds the width. Multiple clickable texts in one texview

Vivek Barai
  • 1,338
  • 13
  • 26
Sourav Chandra
  • 843
  • 12
  • 21

1 Answers1

5

Spannable String are used in Android to highlight the particular portion of text with different click event in a Single TextView.

You can check #SO Demo for this

  1. How to set the part of the text view is clickable

  2. Android: ClickableSpan in clickable TextView

I hope it will helps you .

Community
  • 1
  • 1
IntelliJ Amiya
  • 74,896
  • 15
  • 165
  • 198