ListView elements delimiting lazarus / 43-Android ---------------------------------------------------------------------- zebu1er · 2019-08-22 17:37 Hi, At design time the jListView shows with separating lines between items, but at runtime the items come indistinct. The event OnDrawItemBackground may have helped to set-up an alternated background colour but it only colours the text background and not the whole item... To circumvent that problem I thought of drawing lines (or alternated background) using a JCanvas with onAfterDispatchDraw event, but I've no idea how to process ! Could someone inspire me ? Thanks. ---------------------------------------------------------------------- jmpessoa · 2019-08-23 00:09 Hi, zebu1er! Can you put here some draft picture showing what you want to achieve? ---------------------------------------------------------------------- zebu1er · 2019-08-23 13:41 Here are the attachments : - natural : How it looks at execution time - event-colored : How it looked using the event OnDrawItemBackground - line-separated : How it may look according the component Lazarus toolbar icon - alternate-colored : How I hoped the OnDrawItemBackground to behave ---------------------------------------------------------------------- ADiV · 2019-08-26 10:05 You can also use "lvItems.SetDrawAlphaBackground(0);" to define the color of the transparency and adjust it if desired or set it to 0 which will be the same as the desired color but will lose the functionality of the OnClick and OnLongClick visual feedback. ---------------------------------------------------------------------- jmpessoa · 2019-08-26 17:13 Ok! There is a minor jListView improvement! Please, update LAMW from the github and try  the demo "AppListViewDemo5" Thanks! ---------------------------------------------------------------------- AFFRIZA 亜風実 · 2019-08-27 04:23 Quote from: jmpessoa on August 26, 2019, 07:13:35 pmPlease, update LAMW from the github Nice feature Next, maybe about adding a text item with a pattern. Like this one maybe? ---------------------------------------------------------------------- zebu1er · 2019-09-02 17:40 Hi JM, I've just found your message. The example looks cool, I'm going to use it in my project ! Thanks a lot for your work ! ---------------------------------------------------------------------- zebu1er · 2019-09-03 08:00 I've tested it with success. Again, Thanks !