expand a Relativelayout that contains some Textviews

2332 views android
-3

I'm trying to expand a relative layout that contains some text view and text view's value comes from server then i can't controll layout height.how can i handle this? any guide will be helpful. thanks

answered question

1 Answer

10

You can try to limit the number of lines of your TextView.

Try adding the following properties to your TextView

android:minLines=1

android:maxLines=5

Replace the number of maxLines with what you want to show

posted this

Have an answer?

JD

Please login first before posting an answer.

Ads

Categories