Android Question Orizontal Scroll

corvo

Member
Licensed User
Longtime User
Hi all, is there a way to create a panel whit "orizontal" scroll? For example from left to right...I need to show a graph but is too large for the screen...any ideas? Thankyou!
 

corvo

Member
Licensed User
Longtime User
I got a problem whit the sv2d library....i need to create ad horizontal scroll view in a panel whit a graph (ONLY THIS PANEL NEED THE SCROLL, NO THE ENTIRE LAYOUT), this is my code

sv2d.Initialize(1000dip, 500dip, "scvTest")

pnlLine.AddView(sv2d, 0, 0, 100%x, 100%y)
Dim LD As LineData
LD.Initialize
LD.Target = pnlLine
Charts.AddLineColor(LD, Colors.Red)

It don't give any error but don't works, please any idea?
 
Upvote 0

klaus

Expert
Licensed User
Longtime User
If you want to scroll only horizontally there is no need to use a ScrollView2D use just HorizontalScrollView as suggested by eurojam.
ScrollView2D allows to scroll in both directions.

No need either to post the same question in different threads.

For the problem in post #5 you don't give enough information.

Attached a small project showing a chart in a HorizontalScrollView.
It is a modified version of the LineChart project from the B4A User's Guide.
 

Attachments

  • LinesChartHV.zip
    9.2 KB · Views: 167
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…