M Markos Active Member Licensed User Longtime User Mar 6, 2017 #1 Hi All, Can Scrollvew2d create a zoom effect for a panel within the scroll and all the child objects zoom at same scale?
Hi All, Can Scrollvew2d create a zoom effect for a panel within the scroll and all the child objects zoom at same scale?
Erel B4X founder Staff member Licensed User Longtime User Mar 7, 2017 #2 You can use this sub to scale a view: B4X: Sub ScaleView(v As View, Scale As Float) Dim jo As JavaObject = v jo.RunMethod("setScaleX", Array(Scale)) jo.RunMethod("setScaleY", Array(Scale)) End Sub You can use it to scale all the child views. It will not be automatic. Upvote 0
You can use this sub to scale a view: B4X: Sub ScaleView(v As View, Scale As Float) Dim jo As JavaObject = v jo.RunMethod("setScaleX", Array(Scale)) jo.RunMethod("setScaleY", Array(Scale)) End Sub You can use it to scale all the child views. It will not be automatic.