Addo Well-Known Member Licensed User Longtime User Mar 22, 2021 #1 How do I know if custom list view scrolling is visible? I tried clv.sv.visible but it returns true, no matter if I have 1000 items or only 1 item
How do I know if custom list view scrolling is visible? I tried clv.sv.visible but it returns true, no matter if I have 1000 items or only 1 item
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2021 #2 What do you mean with scroll? The vertical line on the right side? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2021 #4 You can handle the ScrollChanged event. It will more or less match the visibility of this indicator. Upvote 0
Addo Well-Known Member Licensed User Longtime User Mar 22, 2021 #5 The thing is if i have no items the scroll changed event will not be called Upvote 0
Addo Well-Known Member Licensed User Longtime User Mar 22, 2021 #6 As example If I have a global variable B4X: Dim IsClvscrollvisible as boolean If there is one item or not many items the Scroll changed event will not be fired to set this variable accordingly Upvote 0
As example If I have a global variable B4X: Dim IsClvscrollvisible as boolean If there is one item or not many items the Scroll changed event will not be fired to set this variable accordingly
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2021 #7 What are you trying to do? Upvote 0
Addo Well-Known Member Licensed User Longtime User Mar 22, 2021 #8 I am trying to detect some changes in the customlistview when the scrolling is visible Upvote 0
Addo Well-Known Member Licensed User Longtime User Mar 22, 2021 #9 I have also tried to get the property with java object B4X: Dim jo As JavaObject = clv Log(jo.GetField("_scrollbarsvisible")) always return true whether its visible or not Upvote 0
I have also tried to get the property with java object B4X: Dim jo As JavaObject = clv Log(jo.GetField("_scrollbarsvisible")) always return true whether its visible or not
Erel B4X founder Staff member Licensed User Longtime User Mar 22, 2021 #10 The scrolling indicator will not change anything. Upvote 0
Addo Well-Known Member Licensed User Longtime User Mar 22, 2021 #11 I don't get it, I assume that it is not possible to tell if scrollbars is visible or not visible in customlistview. Upvote 0
I don't get it, I assume that it is not possible to tell if scrollbars is visible or not visible in customlistview.
Addo Well-Known Member Licensed User Longtime User Mar 22, 2021 #12 a small workaround but not perfect B4X: If clv.sv.ScrollViewContentHeight > clv.AsView.Height Then log("we have scrollbars") else log("No scrollbars") end if Upvote 0
a small workaround but not perfect B4X: If clv.sv.ScrollViewContentHeight > clv.AsView.Height Then log("we have scrollbars") else log("No scrollbars") end if