Sub Globals
Private Pan1 As Panel
Dim DLine As Canvas
Private SV As ScrollView
Dim Stroke As Float : Stroke = 1dip
Dim Dx,Dy As Float
End Sub
In the Activity_Create
B4X:
Sub Activity_Create(FirstTime As Boolean)
Dy=Activity.Height:Dx=Activity.Width
SV.Initialize(Dy)
Activity.AddView(SV,10dip,10dip,0.5*Dx,0.5*Dy)
Pan1.Initialize("")
SV.Panel.AddView(Pan1,0,0,0.5*Dx,0.5*Dy)
DLine.Initialize(Pan1)
DrawGird
End Sub
only scroll in vertical,I can touch it up and down.
but I want the Gird scroll in horizontal, how to do it.
thanks
Update: As several other libraries depend on xCustomListView library, it is no longer recommended to use the code module. Use the library instead. There are several extension classes that add more features to xCLV. They are listed at the end of this post. Video tutorial: xCustomListView is...
www.b4x.com
2. Use the Forumsearch; i remember there is somewhere an example of an Horizontal xCLV posted in the past...
Update: As several other libraries depend on xCustomListView library, it is no longer recommended to use the code module. Use the library instead. There are several extension classes that add more features to xCLV. They are listed at the end of this post. Video tutorial: xCustomListView is...
www.b4x.com
2. Use the Forumsearch; i remember there is somewhere an example of an Horizontal xCLV posted in the past...
Frist, thanks you Replay
And, Do you mean to say, the ScrollView.Panel is only scroll in vertical can't sroll in horizontal.
thanks again for your replay
ScrollView scrolls only vertically, HorizontalScrollView scrolls only horizontally.
xCustomScrollView can scroll either vertically or horizontally but not in both at the same time.
The ScrollView2D library allows scrolling in both directions.
ScrollView scrolls only vertically, HorizontalScrollView scrolls only horizontally.
xCustomScrollView can scroll either vertically or horizontally but not in both at the same time.
The ScrollView2D library allows scrolling in both directions.