Widget with a List of Items but restricted to widget height

In my design I have a widget that shows the last x rows of content from my app, but the height of the whole list is of course limited by the widgets height. I'd like all my items to be able to have max 2 lines, but only if needed. Also, the List should only display as many items, as will fit in it. Not more...

So upfront I can't say how may items I will be able to display because it will depend on the content, font ect...

How can I achieve that? I haven't found a good solution to figure out how much height a view will need with a given width?!?

Replies

I have the same question.