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:
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
Post a Comment