Saurav Shah
Saurav Shah

Reputation: 681

Android scrollview with list of items

I want to have a view with the following vertical layout

  1. An image (IamgeView)
  2. A description of the image (TextView)
  3. A list of comments

The constraint is that I want the entire page to scroll and not just the list of comments. The number of comments may vary. If I use a ListView for the comments the entire screen doesn't scroll.

Please suggest a way to do this.

Upvotes: 0

Views: 253

Answers (1)

Ika
Ika

Reputation: 1738

You can add a header view to your ListView. Whatever you put in the header view will scroll just like the list.

Upvotes: 2

Related Questions