Listview diferen text size lazarus / 43-Android ---------------------------------------------------------------------- juank1971 · 2020-09-06 21:50 Is possible in Tlistview diferent size and color text in same item Some text size11 and red color Another smaller 10 blue Another smaller 8 green ---------------------------------------------------------------------- Blaazen · 2020-09-07 00:05 TListView has OnDrawItem event and property OwnerDraw. (But I never tried this with ListView) ---------------------------------------------------------------------- jmpessoa · 2020-09-07 20:14 Android/LAMW ? ---------------------------------------------------------------------- juank1971 · 2020-09-07 23:31 Yes yes android lamw. ---------------------------------------------------------------------- jmpessoa · 2020-09-08 00:11 QuoteSome text size11 and red color Another smaller 10 blue Another smaller 8 green Maybe, no. But you can get some help handling events OnDrawItem* and property TextSizeDecored and text item formated as:    MyTextLeft(my|center|text)MayTextRight ---------------------------------------------------------------------- juank1971 · 2020-09-12 01:26 Is done.  I modify applistviewdemo2.    With canvas and Drawtext proprty  listview 3 blank spaces . ---------------------------------------------------------------------- juank1971 · 2020-09-12 01:35 jListView1.add('             l           l           '); ---------------------------------------------------------------------- juank1971 · 2020-09-12 01:48 X:=itemheight; D:=jCanvas1.Density.tostring.tointeger; I:=trunc(x/3/D ) *D; Jcanvas1.drawtext('juan carlos',50,0-tag+i); Jcanvas1.drawtext('pedro',50,x*1-tag+i); Jcanvas1.drawtext('carlos,50,x*2-tag+i); ---------------------------------------------------------------------- jmpessoa · 2020-09-12 04:02 Nice! What about a new "AppListviewDemo7"  ?? So, we can put it in LAMW github.... ---------------------------------------------------------------------- juank1971 · 2020-09-12 04:44 Ok ---------------------------------------------------------------------- juank1971 · 2020-09-12 05:07 This is a complete  unit1.pas . The second text itemHeight/4 The third ItemHeight/2 ---------------------------------------------------------------------- juank1971 · 2020-09-12 05:10 This ---------------------------------------------------------------------- jmpessoa · 2020-09-13 01:39 Done! New demo "AppListviewDemo7" Thanks!