Skip to content

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

 
 

Repository files navigation

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.

Installation

Add the dependency to your build.gradle.

compile 'com.github.andyken:draggablegridview:1.0'

Sample

中文

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

安装

将下面语句加入到build.gradle的dependency中

compile 'com.github.andyken:draggablegridview:1.0'

修改了哪些内容

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

About

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

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages