Skip to first unread message

Min Sullivan

unread,
Feb 24, 2017, 2:52:36 PM2/24/17
to MIT App Inventor Forum
The listview won't scroll when you swipe your finger on it!  This problem occurs when the listview is in:
  • a Vertical Scroll Arrangement and there are other components that make it so you can scroll the scroll arrangement
  • a screen with the scrollable checkbox checked and there are other components that make it so you can scroll the screen

Anyone know of a workaround for this, besides not having listviews in scrollable places?  I've been working on the UI of an app, and I really need this.  Why didn't MIT make it so that the listview scrolls when you swipe your finger on it, no matter what it's in?

Taifun

unread,
Feb 24, 2017, 3:08:46 PM2/24/17
to mitappinv...@googlegroups.com
it does not make sense to put a listivew into a container (could be a scrollable arrangement or the screen itself), which itself is scrollable
what should scroll then, the container or the listview or both?
therefore just put it into a non scrolling arrangement AND set the screen to scrollable = false

EDIT: should be AND and not OR...

Taifun

Trying to push the limits of App Inventor! Snippets, Tutorials and Extensions from Pura Vida Apps by Taifun. 

Min Sullivan

unread,
Feb 24, 2017, 3:13:22 PM2/24/17
to MIT App Inventor Forum
But I have put my listview in a non-scrollable arrangement...

Taifun

unread,
Feb 24, 2017, 3:22:04 PM2/24/17
to MIT App Inventor Forum
you can scroll a listview only if
1. screen is set to scrollable = false and
2. you put the listview not into a scrollable arrangement
on the screen there can be only one thing, which is scrollable...
hope that helps

Taifun

Min Sullivan

unread,
Feb 24, 2017, 3:24:44 PM2/24/17
to MIT App Inventor Forum
Thanks so much!  I get it now.

Massimiliano Polito

unread,
Nov 4, 2019, 8:39:08 AM11/4/19
to MIT App Inventor Forum
Hi people,

I've got the same problem, a listView that doesn't scroll. I read this thread and I realised I ran into the same issue: the listView is in a VerticalScrollArrangement.

Now the question is: how can I change the VerticalScrollArrangement to a simple VerticalArrangement?

I thought of removing the VerticalScrollArrangement and put a VerticalArrangement at its place but unfortunately removing the VerticalScrollArrangement also remove everything that it contains, so the listView itself is deleted (and all the code linked to it).

Any suggestion?

Thanks you very much.

Regards,
Max

TimAI2

unread,
Nov 4, 2019, 8:46:06 AM11/4/19
to MIT App Inventor Forum
If you want to leave things as they are, just change the height of the listview to something extravagant like 2000 pixels, then it will scroll. you may need to play around with the height figure if you have a lot of entries....

Taifun

unread,
Nov 4, 2019, 8:56:22 AM11/4/19
to MIT App Inventor Forum
Now the question is: how can I change the VerticalScrollArrangement to a simple VerticalArrangement?

drag a VerticalArrangement into the working area
then move all components from the VerticalScrollArrangement into the VerticalArrangement
and finally delete the VerticalScrollArrangement 

TimAI2

unread,
Nov 4, 2019, 9:05:12 AM11/4/19
to MIT App Inventor Forum
On my setup, a listview element (as displayed) seems to be 64 pixels in both fixed and responsive sizing.
Therefore, with a few blocks, one can expand/contract the height of the listview in a verticalscrollingarrangement to ensure it continues to scroll

For example (VSA set at 300 pixels high)

blocksexpandinglistviewheight.png


screenexpandinglistviewheight.png



Reply all
Reply to author
Forward
0 new messages