draggablegridview

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

Лицензия

Лицензия

Группа

Группа

com.github.andyken
Идентификатор

Идентификатор

draggablegridview
Последняя версия

Последняя версия

1.0
Дата

Дата

Тип

Тип

aar
Описание

Описание

draggablegridview
A drag-and-drop grid view for Android modified from the thquinn/DraggableGridView.
Ссылка на сайт

Ссылка на сайт

https://github.com/andyken/DraggableGridView
Система контроля версий

Система контроля версий

https://github.com/andyken/DraggableGridView

Скачать draggablegridview

Как подключить последнюю версию

<!-- 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"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

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

Версии библиотеки

Версия
1.0