Add a button inside a Textview

Asked

Viewed 630 times

0

I have a text at the end of the text I want to put a button see more, it has like a hyperlink or have to create a button right next to the Textview ?

inserir a descrição da imagem aqui

  • I see that you work with dynamic sizes, my suggestion is to place this Textview inside a Listview, so the size will be reallocated according to your text. @Ilgnerdeoliveira

1 answer

2


You can assign the parameters in your TextView that will enable them to function as buttons.

android:clickable="true" this you will say that your TextView has button function

android:onClick="selecionarOpcao" this will call a function of your Activity content the functionality you want.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.