mrKlar / PagedDragDropGrid

An Android ViewGroup that implements a paged grid with drag'n'drop moveable items
406 stars 185 forks source link

VerticalScroll #42

Open freide opened 10 years ago

freide commented 10 years ago

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 commented 10 years ago

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

freide commented 10 years ago

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 commented 10 years ago

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

freide commented 10 years ago

this is your example.xml: <?xml version="1.0" encoding="utf-8"?> <ScrollView xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent" > <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 commented 10 years ago

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

freide commented 10 years ago

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 commented 10 years ago

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.