I want to limit my text view to have maximum of 5 lines, so I did:
Progrmatically, you can use:
your_text_view.setEllipsize(TextUtils.TruncateAt.END); your_text_view.setMaxLines(4); your_text_view.setText("text");