Hi everyone. I need to do a structure of scrollview like that.
I need a principal scrollview (A) that can scroll only in vertical, and a linked scrollview ( B) that can scoll in horizontal.
The contents that are in the yellow are should be moved in vertical if i scroll the A scrollview and in horizontal too with the B one.
i try to do like that:
local scrollView = widget.newScrollView { top = display.contentHeight\* 0.08, left = 0, width = display.contentWidth, height = display.contentHeight \* 0.85, scrollWidth = scrollWidthGlobal, scrollHeight = scrollHeightGlobal, hideBackground = true, listener = scrollListener, topPadding = - 25, bottomPadding = 0, horizontalScrollDisabled = true } ----- SOME CONTENT ------ local OscrollView = widget.newScrollView { top = 0, left = L6X, width = display.contentWidth - L6X, height = display.contentHeight \* 0.925, -- scrollWidth = display.contentWidth, -- scrollHeight = display.contentHeight \* 0.85, hideBackground = true, listener = scrollListener2, leftPadding = 0, rightPadding = 0, horizontalScrollDisabled = false, verticalScrollDisabled = true } local try1 = display.newText("X") try1.x, try1.y = positionX, positionY scrollView:insert( OTHERCONTENTS ) scrollView:insert( try1 ) OscrollView:insert( try1 )
If I left like that, the object try1 scroll only with the second scrollview (in horizontal). If I don’t insert the object in one of two scrollview, as normal, not scroll with the one it not insert.
I tryed too insert the second scrollview in the first one too, but with no effect.
Some one can help me? It is possible to do a structure like that with corona?
Excuse me for my bad english,
Hope you’ll help me.
Roberto