Android Question Listview and long text

Sub7

Active Member
Licensed User
Longtime User
Hello,
i populate a listview from sqlite with twolinesandbitmap, while the first label item name lenght is always short, the secon label text can contain long, medium or short text.
I want the secondlabel to be adjusted to fit with the text without getting trimmed or leaving empty spaces which i get if i specify a fixed itemheight.

Example:

Icon - #item 1
This is short text
*here i get empty space with fixed height

Icon - #Item 2
This is very long text this is very long text this is very long text
this is very long text this is very long textthis is very long text
this is very long text this is very long textthis is very long text
this is very long text this is very long textthis is very long text
this is very long text this is very long textthis is very long text

*even if i specify the height i cannot be sure it will always fit

Icon - #Item 3
This is medium lenght text This is medium lenght text
This is medium lenght text


Icon - #item 4
This is short text and so on.

Possible? thanks!
 
Top