sliding panel and scrollview in same activity

mrossen

Active Member
Licensed User
Longtime User
Hi,

I an trying to combine the sliding panel example with the scrollview on each panels
Can this be done? It seems like it is only the top panel that works
Do anyone have a example om this?

Mogens
 
Hi Erel,

This is what I am trying

Code: Copy
ScrollViewLayer(0).Initialize(0)
   ScrollViewLayer(1).Initialize(0)
   
   panels(0).Initialize("panels")
   panels(1).Initialize("panels")
   
   panels(0) = ScrollViewLayer(0).Panel
   panels(1) = ScrollViewLayer(1).Panel
      
   Activity.AddView(ScrollViewLayer(0), 100%x, 0, 100%x, 100%y) 'add the panel to the layout
   Activity.AddView(ScrollViewLayer(1), 100%x, 0, 100%x, 100%y) 'add the panel to the layout
   
   panels(0).LoadLayout("input")
   panels(1).LoadLayout("output")
   
    panels(0).Height = 1000dip   
    panels(1).Height = 1000dip

Hope you can help, i am stucked...

Mogens
 
Upvote 0
Hi again,

I can now run the app without error, but sliding panel and scrollview do not work.
Any Idea?

Code: Copy
ScrollViewLayer(0).Initialize(1000dip)
   ScrollViewLayer(1).Initialize(1000dip)
   
   panels(0).Initialize("panels")
   panels(1).Initialize("panels")
   
   
   ScrollViewLayer(0).Panel.LoadLayout("input")
   ScrollViewLayer(1).Panel.LoadLayout("output")
   
   panels(0) = ScrollViewLayer(0)
   panels(1) = ScrollViewLayer(1)
   
   Activity.AddView(panels(0), 100%x, 0, 100%x, 100%y) 'add the panel to the layout
   Activity.AddView(panels(1), 100%x, 0, 100%x, 100%y) 'add the panel to the layout
      
    panels(0).Height = 1000dip   
    panels(1).Height = 1000dip
 
Upvote 0
Back
Top