I have two textviews like this:
=======================
= TextView1 TextView2 =
=======================
And I would like to detect when the
You should use a single, multi-line TextView
and set the text as follows :
mTextView.setText(text1+" "+text2);
or
mTextView.setText(text1+"\n"+text2);
depending on your particular needs.
EDIT: you could specify your text in html
, and then use Html.fromHtml(htmlString) and display this text in your TextView
.
String text1 ="This is some text!"
String text2="This is some other text!"
textView.setText(Html.fromHtml(text1+ "
"+ text2);