Drag and drop items around GridLayout - Android - android

I have a GridLayout with some items in it. Nothing special on it.
I just would like to know if I can drag items around and make the other items automatically arrange themselves.
It's like Android does in Jellybean if you move an icon near another icon.
Is that possible in GridLayout?
Thank you!

I don't know if that is possible with a GridLayout, doubt it, but here is a example that looks like a GridLayout and implements Drag and Drop. This should solve your issue.

I feel like there are many projects which could solve this slightly better than the other answer:
See the following question
Within this, the following projects are mentioned:
PagedDragDropGrid
Alternative View Drag and Drop
Google Project and some other 3rd party stuff
This may help you find some stuff other than GridViews as well.

Related

Recycler View custom scrolling effects

I want to make awesome scroll effect. I've found a couple of examples:
http://lab.hakim.se/scroll-effects/
but I have no idea how to such behaviour. I consider to make it on my own, but it will be good to have a library which I can use. Just need some starting point. Any ideas?
I've used this library a few times and seemed good but seems to be in need of an update since some of the delete animations have problems. But the scrolling animations should still be good:
https://github.com/wasabeef/recyclerview-animators

How to drag the layout only vertical in app?

Hi everyone. I want to make a view like above. On the same screen , I have got two different layout (or it can be fragments, doesn't matter for now.). User can swipe both layout on long touch and drag/drop like above. Do you know how can we do it or is there any library for this?
Thanks
Please check DragLinearLayout libray.
Hope for help. :)
You can use Drag sort library
but i think this assumes that you use a listview.

Horizontal Slide Expandable Listview

I've searched for libraries, but i have found that existing libraries only support vertical slider. Anyone know any library capable of handle things such as “automatic collapse item when another is clicked”, and so on.
I'm not asking for a piece of code that ilustrate how to do it. Instead, i'm looking for something more robust and tested, like this library https://github.com/tjerkw/Android-SlideExpandableListView, but it must support horizontal slider.
Thanks.
This library is just what I needed it

Custom Android GridView

I want to create a GridView like this one:
But, I don't know how! I know how work with Android GridView, but not like this one.
Suggestions of library or any tip will be welcome.
Thanks.
I want to create a GridView like this one
The View you are referring to can quite easily be created without using a GridView. If your components (clothing, bags, shoes etc.) are static, you can use nested LinearLayouts (with weights) inside a ScrollView.
Suggestions of library or any tip will be welcome.
You can try StaggeredGridView: Link
A demo project to get you going: Link

How to move objects across layouts using Drag and Drop

I can move objects in their parent layout but I could not find how to move them to another layout. Does anyone know it?
Edit: This tutorial shows how to do. fupeg.blogspot.com/2011/03/honeycomb-drag-and-drop-basics.html
This is a buit-in functionnality coming with Android honeycomb, see this specific article.
If you want to do that on earlier versions, try that tutorial.

Categories

Resources