Reverse scrollview

Hi all,

Am wondering whether it is possible to implement a reverse scrollview.

So I want to scroll up instead of scrolling down.

I managed to come close by setting the top padding to a high value and using scrollto the bottom when the scene starts

    local newScrollView = widget.newScrollView     {         left = 10,         top = 10,         width = display.contentWidth-20,         height = display.contentHeight-40,         scrollHeight=100,         bottomPadding = 0,         topPadding = 10000,         horizontalScrollDisabled = true,         verticalScrollDisabled = false,         listener = scrollListener,         align = "center",         backgroundColor = { 1.0, 1.0, 1.0, 0.0 },     } newScrollView:scrollToPosition {     x = 0,     y = 0,     time = 10 }

But I’m not sure whether I can set the bottom bounds for the scrollview after that.

Thanks in advance,

Hi @wuhu.apps,

I’m not clear on this: do you want to populate the scrollView with a bunch of content, but just have it begin at the bottom limit? Then from there, the user can scroll up (or up and back down) as normal?

Brent

Hi Brent,

Yes that’s what I want.

But reading your message made me realize I should just put things in reverse order and scrollto bottom.

Thanks.

Hi @wuhu.apps,

I’m not clear on this: do you want to populate the scrollView with a bunch of content, but just have it begin at the bottom limit? Then from there, the user can scroll up (or up and back down) as normal?

Brent

Hi Brent,

Yes that’s what I want.

But reading your message made me realize I should just put things in reverse order and scrollto bottom.

Thanks.