android - multi-line textview,how to implement this layout -


i working android app. have 2 textviews, textview1 used show username, , textview2 used show words more 1 line.

the layout looks this:

enter image description here

the second line of textview2 should align textview1 how implements layout? idea appreciated.

edit 1: actually, need solution meets need, can use more 2 textviews if needed.

edit 2: ozi's solution fix problem, if need bind listener on textview1 in future? there other solutions? thanks.

you can use 1 text view text. , should change style of black part that:

   string blackstring = "<font color='#000000'>black</font>";    t.settext(html.fromhtml(blackstring + maintext)); 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -