PagedDragDropGrid icon indicating copy to clipboard operation
PagedDragDropGrid copied to clipboard

VerticalScroll

Open freide opened this issue 11 years ago • 7 comments

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.

freide avatar Nov 29 '13 11:11 freide

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

mrKlar avatar Nov 29 '13 14:11 mrKlar

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

freide avatar Nov 29 '13 15:11 freide

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

mrKlar avatar Nov 29 '13 15:11 mrKlar

this is your example.xml:

<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.

freide avatar Nov 29 '13 16:11 freide

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

mrKlar avatar Nov 29 '13 16:11 mrKlar

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.

freide avatar Nov 29 '13 16:11 freide

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.

virusman avatar Dec 18 '13 16:12 virusman