Android Question [B4X] ScrollView cross platform [Solved]

angel_

Well-Known Member
Licensed User
Longtime User
What is the best view cross platform (b4a, b4i, b4j) to replace ScrollView?
 

Star-Dust

Expert
Licensed User
Longtime User
try this

 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Upvote 0

angel_

Well-Known Member
Licensed User
Longtime User
Thanks a lot, I'm trying xCustomListView but it doesn't work for me as I was doing with ScrollView, I am trying to do this

B4X:
        xClv.sv.Height = 120%y
        xClv.sv.LoadLayout("Lyt")


I want to replace this (with ScrollView)::

B4X:
        Scv1.Panel.Height = 120%y
        Scv1.Panel.LoadLayout("Lyt")
 
Upvote 0

Mahares

Expert
Licensed User
Longtime User
xClv.sv.Height = 120%y xClv.sv.LoadLayout("Lyt")
No. you do not need the first line. Also, you do not load a layout on a Customlistviw (also known as xCLV) like you show in your 2nd line. You create a layout with the xCLV in it as a customview (of course you need the library) in the designer and load it to an activity or panel. xCLV is based on scrollview but it is not the equivalent, but xCLV is lot more powerful. In order not to further confuse you, please see this link and view the video Erel has about customlistview.
Here is a link that explains about the benefits of Xcustomlistview. It has an example you can run to get familiar with it.
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
Here is a link that explains about the benefits of Xcustomlistview. It has an example you can run to get familiar with it.
The link is wrong. You should use xCustomListView. See post #4.
 
Upvote 0
Top