divideddraggableview

Draggable grid view with divided line.

License

License

Categories

Categories

IDE Development Tools
GroupId

GroupId

com.github.andyken
ArtifactId

ArtifactId

divideddraggableview
Last Version

Last Version

1.1
Release Date

Release Date

Type

Type

aar
Description

Description

divideddraggableview
Draggable grid view with divided line.
Project URL

Project URL

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

Source Code Management

https://github.com/andyken/DividedDraggableView

Download divideddraggableview

How to add to project

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

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.

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.

Versions

Version
1.1