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?
 
try this

 
Upvote 0
Upvote 0
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: Copy
        xClv.sv.Height = 120%y
        xClv.sv.LoadLayout("Lyt")


I want to replace this (with ScrollView)::

B4X: Copy
        Scv1.Panel.Height = 120%y
        Scv1.Panel.LoadLayout("Lyt")
 
Upvote 0
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
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
Back
Top