Lazarus

Programming => Operating Systems => Android => Topic started by: Robert Gilland on April 11, 2019, 12:45:15 am

Title: LAMW with jDBListView and TDataSource
Post by: Robert Gilland on April 11, 2019, 12:45:15 am
Firstly,
  Thank you for all your work with LAMW.
This is a quick question as to why jDBListView doesn't seem to be compatible with TDataSource?
Title: Re: LAMW with jDBListView and TDataSource
Post by: jmpessoa on April 11, 2019, 01:26:07 am
Quote
jDBListView doesn't seem to be compatible with TDataSource?

jDBListView is compatible with  LAMW  jSqliteCursor/jSqliteDataAccess only ... [sorry...]

You can try the demo "AppDBGridViewDemo1"

 
Title: Re: LAMW with jDBListView and TDataSource
Post by: Robert Gilland on April 11, 2019, 01:35:59 am
DBGridView also is not compatible with TDatasource.
Would really love to be able to simply be concerned with populating datasets, and let the UI take charge of presentation.

Is compatibility with Tdatasource in the plans for development?

Also

Is CustomDrawListViewItem Event in the plans for development?
Title: Re: LAMW with jDBListView and TDataSource
Post by: jmpessoa on April 11, 2019, 01:49:53 am

Quote
Is CustomDrawListViewItem Event in the plans for development?

If you work with [material design] theme "AppCompat" 
you can use "jsRecyclerView"   [custom drawItem by design]

But  jListView can handle many  commons patterns.  What you need? I can try help  you.
Title: Re: LAMW with jDBListView and TDataSource
Post by: Robert Gilland on April 11, 2019, 02:14:29 am
As I said in the other thread.

Current ListView needs:

IMAGE followed by a Long Description ie. not 3 columns. If the grid view could not show vertical columns that would help. Maybe that would work.

Near future Listview Needs are:

Long Description on one line then Short Description Objects underneath.
Long Description must not get mixed up with Short Description Objects:

For Example:

This is the Description of my Product.
Code:Product Code Qty: 56
Title: Re: LAMW with jDBListView and TDataSource
Post by: jmpessoa on April 11, 2019, 04:43:26 am

Quote
This is the Description of my Product.
Code:Product Code Qty: 56

What about:

Set properties:

ItemImageIdentifier: ic_launcher
ItemLayout: layImageTextWidget
TextAlign: taCenter
TextDecorated:txtNormalAndItalic
TextSizeDecorated:sdDecreasing

Code: Pascal  [Select][+][-]
  1. jListView1.Add('This is the Description of my Product|Code:123456        Qty: 56');
  2.  

the delimiter '|' will break the text ....
Title: Re: LAMW with jDBListView and TDataSource
Post by: Robert Gilland on April 11, 2019, 07:35:30 am
Thanks, that Looks good for future requirements.

However the current requirement means I need a different image per list view item. I think there is an event for that, I will test that.
TinyPortal © 2005-2018