Android Question Problem with xCustomListView v1.65 and XUI Views

Matteo Giorgini

Member
Licensed User
Hi guys!
In a project I've referenced "XUI (Version: 1.90)" for to use xCustomListView v1.65 (url: xCustomListView v1.65).
Today I've added "XUI Views (Version: v.2.13)" for to use B4XSwitch.
After compile, during test's session, xCustomListView works differently; title's item zoomed during process of collapse and expand.
If I remove "XUI Views (Version v.2.13)" collapse and expand of items works properly.

Is it a bug or others (like a conflict with different library XUI version)?


Thanks in advance for any suggests...

Matteo
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
n a project I've referenced "XUI (Version: 1.90)" for to use xCustomListView v1.65 (url: xCustomListView v1.65).
Big mistake to use CustomListView module. See the first sentence in that link.

Remove the module, add a reference to xCustomListView library and use CLVExpandable class.
 
Upvote 0

Matteo Giorgini

Member
Licensed User
Thanks Erel!
I started from sample (https://www.b4x.com/android/forum/threads/b4x-xui-expandable-list-based-on-xcustomlistview.86449/) in order of your suggest and I've referenced XUI Views (Version: 2.13).
I create a B4XSwitch on existent layout and compile.
I obtain this error:

B4A Versione: 9.50
Java Versione: 11
Analisi del Codice. (0.06s)
Building folders structure. (0.05s)
Compilazione del codice. (0.51s)
Compilazione del codice di layouts (0.01s)
Organizzazione Librerie. (0.00s)
(AndroidX SDK)
Generazione file R. (0.00s)
Compilazione del codice debugger. (0.01s)
Compilazione del codice Java prodotto. Error
B4A line: 35
clv1.Add(CreateItem(Rnd(0xFF000000, 0xFFFFFFFF),
src\b4a\example3\main.java:426: error: method _add in class customlistview cannot be applied to given types;
mostCurrent._clv1._add(_createitem(anywheresoftware.b4a.keywords.Common.Rnd((int) (0xff000000),(int) (0xffffffff)),"Item #"+BA.NumberToString(_i),_id),(Object)(_id));
^
required: customlistview,B4XViewWrapper,Object
found: B4XViewWrapper,Object
reason: actual and formal argument lists differ in length



What am I doing wrong?


Matteo
 
Upvote 0

Matteo Giorgini

Member
Licensed User
Erel,
I removed module and added reference to xCustomListView library v. 1.72.
xCustomListView not works properly (strange zoomed text appears) again.
CLVExpandable not found... I can see only a class named CLVItem.
In designer I can see only CustomListView.


Matteo
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
CLVExpandable not found... I can see only a class named CLVItem.
It will not work without reading the instructions:

firefox_RZhJ7Wmg6e.png

You will need to make some changes to work with CLVExpandable.
 
Upvote 0
Top