Android Question Basic understanding of xCustomListView

Andie

Member
Licensed User
Longtime User
I'm a little bit confused: When I activate the xCustomListView Library, I can generate a view "CustomListView" in the designer. When I activate the XUI Views Library, I can also generate a "CostumListView". The name is the same, so are these views the same? If they are not: What happens, if I activate both libs, i. e. xCustomListView and XUI Views?

Btw, the native B4A ListView contains a RequestFocus-Method. Is there something similar for the xCLV?
 

KZero

Active Member
Licensed User
Longtime User
That's right xCustomListView name in the designer "CustomListView" it's the same

Btw, the native B4A ListView contains a RequestFocus-Method. Is there something similar for the xCLV?

B4X:
CLV.AsView.RequestFocus
 
Upvote 0

Andie

Member
Licensed User
Longtime User
Thanks for your reply. So, when I activate the lib XUI Views, then there's no need to activate xCustomListView in order to get the xCLV?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
So, when I activate the lib XUI Views, then there's no need to activate xCustomListView in order to get the xCLV?
Wrong. Surely you need to mark xcustomlistview library to get the View. It is not part of XUI Views library.

These are two different Libraries


 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Btw, the native B4A ListView contains a RequestFocus-Method. Is there something similar for the xCLV?
RequestFocus are for views which edit something. TextEdit for example. Or a Button.
xCLV is not a editable view but can contain such.

A TexEdit added to the xCLV does have a RequestFocus. Even Buttons
 
Upvote 0

Andie

Member
Licensed User
Longtime User
Thanks, Manfred, for your answer.
I'm sorry that I was not clear enough:

When I activate only the XUI Views lib, then I can add such CustomViews as SwiftButton, ScrollingLabel, B4XSwitch, CustomListView and so on.
When I activate only the xCustomView Lib, then I can add the CustomView CustomListView.
(surprisingly, the two libs use the same name for this view: CustomListView)

The problem is: When I activate both libs, to which lib does the CustomListView then belong?
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
When I activate only the XUI Views lib, then I can add such CustomViews as SwiftButton, ScrollingLabel, B4XSwitch, CustomListView and so on.
CustomListView ist NOT part of XUI Views!

CustomListView is part of the CustomListView-Module. It is also part of xclv Library (same Name: CustomListView).

Create a new project. JUST add XUI Views and nothing else.
Go to the designer and you´ll see there is no CustomListView to select.
 
Upvote 0

KZero

Active Member
Licensed User
Longtime User
CustomListView ist NOT part of XUI Views!

CustomListView is part of the CustomListView-Module. It is also part of xclv Library (same Name: CustomListView).

Create a new project. JUST add XUI Views and nothing else.
Go to the designer and you´ll see there is no CustomListView to select.
Odd, I added XUI Views to a new project and I can add xCLV
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
This is normal because the XUI Views b4xlib depends on xCustomListView.
So, if you use the XUI Views library and you need xCustomListView then you don't need to check xCustomListView library.
Anyway, if you check, there will be no problem because they point to the same libary.

Content of the XUI Views b4xlibs manifest.txt file.
Version=2.24
B4J.DependsOn=jBitmapCreator, jXUI, jDateUtils, JavaObject, xCustomListView, B4XFormatter
B4A.DependsOn=BitmapCreator, XUI, DateUtils, xCustomListView, IME, JavaObject, B4XFormatter
B4i.DependsOn=iBitmapCreator, iXUI, iDateUtils, xCustomListView, B4XFormatter
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
So based on this requirement they are added to your project automatically?
Yes.

XUI Views automatically adds a reference to xCustomListView as well. It doesn't matter whether you check xCustomListView in the list or not, the result will be the same.
 
Upvote 0
Top