Skip to content
This repository has been archived by the owner on Jan 15, 2022. It is now read-only.

VerticalScroll #42

Open
freide opened this issue Nov 29, 2013 · 7 comments
Open

VerticalScroll #42

freide opened this issue Nov 29, 2013 · 7 comments

Comments

@freide
Copy link

freide commented Nov 29, 2013

Dear mrKlar,

Thank you for sharing you knowledge with all of us.
But I have encounter vertical scrolling problem, I have read everybody's problems in the different comments, and I haven't found a solution. I know you are working on your spare time on it, but I would like to ask you for help.

My code have got just one page, and I want to add vertical scrolling in it, it is easier than adding it to several pages. I would appreciate if you could tell me what I should do.

Please help me,
Thank you.

@mrKlar
Copy link
Owner

mrKlar commented Nov 29, 2013

Just putting the grid into a vertical scroll view does'nt work?

@freide
Copy link
Author

freide commented Nov 29, 2013

Do you mean in example.xml or in PagedDragDropGrid, I have just changed in PagedDragDropGrid the extends from HorizontalScrollView to ScrollView and I am testing it, but I don't think it is going to work.

Thanks

@mrKlar
Copy link
Owner

mrKlar commented Nov 29, 2013

Yes in the example xml, there is a parent scrollview that is vertically scrolling the grid.

@freide
Copy link
Author

freide commented Nov 29, 2013

this is your example.xml:


<ca.laplanete.mobile.pageddragdropgrid.PagedDragDropGrid
android:id="@+id/gridview"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:background="@android:color/white"/>

And it scrolls the grid, but the scroll doesn't cover all the icons that I've added. I show you in these images:
The fist one show how does de app start, and the second one with the scroll that add example.xml, but the number of icons that I have got is 80, so there are six left that don't appear with the given scroll.
captura de pantalla 2013-11-29 a la s 16 59 34
captura de pantalla 2013-11-29 a la s 16 59 48

Thanks you, I don't know if I express my shelf properly because english is not my mother tongue.

@mrKlar
Copy link
Owner

mrKlar commented Nov 29, 2013

Oh, than there is a problem that i dont know of...

@freide
Copy link
Author

freide commented Nov 29, 2013

Yes, I've got 80 items... I'm sorry about the bad news, I hope you have spare time and you can keep working on it!
if you get to the solution of the problem I would be perfect if tell all of us.
Thanks for your help.

@virusman
Copy link

If I understand correctly, putting it into ScrollView won't be memory-efficient, because it won't recycle grid elements that are not displayed on the screen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants