Question about ListView bitmap

klaus

Expert
Licensed User
Longtime User
Hi Erel,

Playing with bitmaps for a ListView I discovered that the bitmap size is 50*50 dip's.
Bitmaps with other dimensions are shrinked or streched and the width/height is not maintained.

Is this an Android limitation or a B4Android limitation ?
If it remains so, it would be interesting to have the information in the help files.

Best regards.
 

philfred

Member
Licensed User
Longtime User
The bitmap size is determined by the ImageView size in TwoLinesAndBitmap layout:
B4X:
    Dim lv As ListView
    lv.TwoLinesAndBitmap.ImageView.Width =

The Width seems to change but not the height??!?!
dim lst as ListView
lst.TwoLinesAndBitmap.ItemHeight=RowImage
lst.TwoLinesAndBitmap.ImageView.Height=RowImage
lst.TwoLinesAndBitmap.ImageView.Width=RowImage

Or am i missing something?
 
Upvote 0
Top