B4J Question ScrollView2D for B4J

Jan Bruntink

New Member
Licensed User
I an using the ScrollView2D library fro my B4A projects and it works fine.
Now i want to write a B4J project but the ScrollView2D library does not work.
With B4A i can set the ScrollView2D.Panel.SetBackground as a bitmap, but in B4J there is no choise after the panel part,
if you try is says ScrollView2D.panel (as).
Can anyone give me the right code?
 

klaus

Expert
Licensed User
Longtime User
In B4J you should use ScrollPane which is also scroll-able in both direction.
You can define it either as a ScrollPane or a B4XView.
The inner panel of the ScrollPane is InnerNode.
You can directly load a Layout with ScrollPane.LoadLayout.
The inner panel of the ScrollPane as a B4XView is ScrollPane.ScrollViewInnerPanel.
You need to load the layout onto ScrollPane.ScrollViewInnerPanel.
 
Upvote 1
Top