A apty Active Member Licensed User Longtime User Jan 2, 2019 #1 I need to create a layout like the one on the image below. I would appreciate any help on how to achieve same layout with viewpager. I tried using the below code to scale the viewpager on Activity_LongClick but still no success Code: Dim jo As JavaObject = ViewPager1 Dim factor As Float = 0.8 jo.RunMethod("setScaleX", Array(factor)) jo.RunMethod("setScaleY", Array(factor)) ViewPager1.PageMargin=-40%x
I need to create a layout like the one on the image below. I would appreciate any help on how to achieve same layout with viewpager. I tried using the below code to scale the viewpager on Activity_LongClick but still no success Code: Dim jo As JavaObject = ViewPager1 Dim factor As Float = 0.8 jo.RunMethod("setScaleX", Array(factor)) jo.RunMethod("setScaleY", Array(factor)) ViewPager1.PageMargin=-40%x
Erel B4X founder Staff member Licensed User Longtime User Jan 2, 2019 #2 I don't think that the scaling code will help. You can use B4XView.Snapshot to capture the panels visual state and then show these bitmaps with xCLV in horizontal orientation. Upvote 0
I don't think that the scaling code will help. You can use B4XView.Snapshot to capture the panels visual state and then show these bitmaps with xCLV in horizontal orientation.
A apty Active Member Licensed User Longtime User Jan 2, 2019 #3 I would appreciate an example. I am not able to achieve the same Upvote 0