/DraggableGridView

A drag-and-drop scrolling grid view for Android

Primary LanguageJavaOtherNOASSERTION

DraggableGridView

A drag-and-drop grid view for Android modified from the thquinn/DraggableGridView.

What I have modified from the thquinn/DraggableGridView

  • You can customize the width and height of item.
  • You can customize the count of item each line.
  • You can customize the padding of line.Default value is 20dp.
  • Modifing the logic of switching item.When you move to the other item,then start switch.
  • removing the scale of item when longclick on them.
  • removing the scroll of gridview.
  • removing the updateTask.

Sample

中文

这是一个修改自thquinn/DraggableGridView的Android拖动GridView.

修改了哪些内容

  • 可自定义item的宽度和高度
  • 可自定义每行的个数
  • 可自定义每行间隔的高度,默认为20dp
  • 修改了item之间交换逻辑,当移动到另一个item时,就进行交换
  • 删除了其中的长按放大效果
  • 删除了scroll功能
  • 删除了其中的循环任务updateTask