divideddraggableview

Draggable grid view with divided line.

Лицензия

Лицензия

Категории

Категории

IDE Инструменты разработки
Группа

Группа

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

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

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

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

1.1
Дата

Дата

Тип

Тип

aar
Описание

Описание

divideddraggableview
Draggable grid view with divided line.
Ссылка на сайт

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

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

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

https://github.com/andyken/DividedDraggableView

Скачать divideddraggableview

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

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

Зависимости

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

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

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

DividedDraggableView

Draggable grid view with divided line.

Usage

Add the dependency to your build.gradle.

compile 'com.github.andyken:divideddraggableview:1.2'

Usage

You should new the DividedDraggableView and setItemCount,then add your view by calling addChildView.

DividedDraggableView dividedDraggableView = new DividedDraggableView(SampleActivity.this);
dividedDraggableView.setItemCount(mockViews.size());
for (ImageView imageView : mockViews) {
    dividedDraggableView.addChildView(imageView);
}
rootView.addView(dividedDraggableView);
  • you can set the attributes at xml or by using DividedDraggableView.Builder.
  • you can set the attributes such as rowHeight,itemWidth,itemHeight,rowPadding.
  • you can set the gap between group,group line count,group item count.text in group.
  • you can set some color attributes like background color,gap color,group color,the color of text in gap.

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

Версия
1.1