draggablegridview

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

License

License

GroupId

GroupId

com.github.andyken
ArtifactId

ArtifactId

draggablegridview
Last Version

Last Version

1.0
Release Date

Release Date

Type

Type

aar
Description

Description

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

Project URL

https://github.com/andyken/DraggableGridView
Source Code Management

Source Code Management

https://github.com/andyken/DraggableGridView

Download draggablegridview

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.andyken/draggablegridview/ -->
<dependency>
    <groupId>com.github.andyken</groupId>
    <artifactId>draggablegridview</artifactId>
    <version>1.0</version>
    <type>aar</type>
</dependency>
// https://jarcasting.com/artifacts/com.github.andyken/draggablegridview/
implementation 'com.github.andyken:draggablegridview:1.0'
// https://jarcasting.com/artifacts/com.github.andyken/draggablegridview/
implementation ("com.github.andyken:draggablegridview:1.0")
'com.github.andyken:draggablegridview:aar:1.0'
<dependency org="com.github.andyken" name="draggablegridview" rev="1.0">
  <artifact name="draggablegridview" type="aar" />
</dependency>
@Grapes(
@Grab(group='com.github.andyken', module='draggablegridview', version='1.0')
)
libraryDependencies += "com.github.andyken" % "draggablegridview" % "1.0"
[com.github.andyken/draggablegridview "1.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

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

Versions

Version
1.0