HI,
Just attempting to create a listview with a different image per list item, to the left of the text.
The Below code does not seem to work at all, no idea why:
procedure TAndroidModule1.jListView1DrawItemWidgetBitmap(Sender: TObject;
itemIndex: integer; widgetText: string; out bimap: JObject);
begin
if( itemIndex >= 0 )and( itemindex < jImageList1.Count )then
begin
bimap := jImageList1.GetBitmap(itemIndex);
end;
end;
object jListView1: jListView
Tag = 1
Left = 0
Top = 0
Width = 292
Height = 657
MarginLeft = 0
MarginTop = 0
MarginRight = 0
MarginBottom = 0
Enabled = True
Visible = True
Id = 3721116
PosRelativeToAnchor = []
PosRelativeToParent = [rpTop, rpCenterHorizontal]
LayoutParamWidth = lpMatchParent
LayoutParamHeight = lpMatchParent
Items.Strings = (
'BARRY'
'FRED'
'HARRY'
'MARY'
)
BackgroundColor = colbrDefault
FontColor = colbrMidnightBlue
FontSize = 0
WidgetItem = wgNone
Delimiter = '|'
TextDecorated = txtNormal
ItemLayout = layWidgetTextImage
TextSizeDecorated = sdNone
TextAlign = alLeft
HighLightSelectedItemColor = colbrRed
FontSizeUnit = unitDefault
ItemPaddingTop = 40
ItemPaddingBottom = 40
WidgetTextColor = colbrDefault
OnDrawItemWidgetBitmap = jListView1DrawItemWidgetBitmap
end