W winjiadh Active Member Licensed User Longtime User Feb 13, 2020 #1 I use the ScrollView.Panel in tje Globals B4X: Copy 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: Copy 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 Last edited: Feb 14, 2020
I use the ScrollView.Panel in tje Globals B4X: Copy 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: Copy 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
DonManfred Expert Licensed User Longtime User Feb 13, 2020 #2 1. Use xCustomListview insteal of ListView. xclv = lv with eXtended Features 2. Set the Orientation to Horizontal Upvote 0
1. Use xCustomListview insteal of ListView. xclv = lv with eXtended Features 2. Set the Orientation to Horizontal
W winjiadh Active Member Licensed User Longtime User Feb 13, 2020 #3 DonManfred said: 1. Use xCustomListview insteal of ListView. xclv = lv with eXtended Features 2. Set the Orientation to Horizontal Click to expand... But I not used the ListView,I used the ScrollView Upvote 0
DonManfred said: 1. Use xCustomListview insteal of ListView. xclv = lv with eXtended Features 2. Set the Orientation to Horizontal Click to expand... But I not used the ListView,I used the ScrollView
DonManfred Expert Licensed User Longtime User Feb 13, 2020 #4 winjiadh said: But I not used the ListView,I used the ScrollView Click to expand... I did not said you did. xCustomListview is not a Listview. It is a ScrollView with extended features. Upvote 0
winjiadh said: But I not used the ListView,I used the ScrollView Click to expand... I did not said you did. xCustomListview is not a Listview. It is a ScrollView with extended features.
W winjiadh Active Member Licensed User Longtime User Feb 13, 2020 #5 DonManfred said: 1. Use xCustomListview insteal of ListView. xclv = lv with eXtended Features 2. Set the Orientation to Horizontal Click to expand... Can you modify it used my zip. thanks Upvote 0
DonManfred said: 1. Use xCustomListview insteal of ListView. xclv = lv with eXtended Features 2. Set the Orientation to Horizontal Click to expand... Can you modify it used my zip. thanks
DonManfred Expert Licensed User Longtime User Feb 13, 2020 #6 No. It is you who want this; not me. I do not expect it to be complicated. 1. Check the Tutorial [B4X] [XUI] xCustomListView - cross platform CustomListView 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... Last edited: Feb 13, 2020 Upvote 0
No. It is you who want this; not me. I do not expect it to be complicated. 1. Check the Tutorial [B4X] [XUI] xCustomListView - cross platform CustomListView 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...
W winjiadh Active Member Licensed User Longtime User Feb 13, 2020 #7 DonManfred said: No. It is you who want this; not me. I do not expect it to be complicated. 1. Check the Tutorial [B4X] [XUI] xCustomListView - cross platform CustomListView 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... Click to expand... 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 Upvote 0
DonManfred said: No. It is you who want this; not me. I do not expect it to be complicated. 1. Check the Tutorial [B4X] [XUI] xCustomListView - cross platform CustomListView 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... Click to expand... 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
DonManfred Expert Licensed User Longtime User Feb 13, 2020 #8 I cant answer this question. Never used ScrollView as all the time i read that one should not use ScrollView but xCLV instead. Upvote 0
I cant answer this question. Never used ScrollView as all the time i read that one should not use ScrollView but xCLV instead.
W winjiadh Active Member Licensed User Longtime User Feb 13, 2020 #9 Wait and see if anyone who knows can reply Upvote 0
udg Expert Licensed User Longtime User Feb 13, 2020 #10 Hi, as far as I recall you have both a ScrollView and an HorizontalScrollView to choose from. Upvote 0
klaus Expert Licensed User Longtime User Feb 13, 2020 #11 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. Upvote 0
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.
W winjiadh Active Member Licensed User Longtime User Feb 14, 2020 #12 klaus said: 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. Click to expand... Tanks, that's great! Upvote 0
klaus said: 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. Click to expand... Tanks, that's great!