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.
 
The bitmap size is determined by the ImageView size in TwoLinesAndBitmap layout:
Code:
    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
You can change the position of the bitmap with its Left property.
Code:
ListView.TwoLinesAndBitmap.ImageView.Left = xx
Attached a small test program.

Best regards.
 

Attachments

Upvote 0
Back
Top