Skip to content

Commit 8cace95

Browse files
Update README.md
1 parent ebb41fd commit 8cace95

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

README.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,27 +37,38 @@ Library consists of three parts:
3737
android:layout_height="match_parent"
3838
app:cellMargin="1dp"
3939
app:fixedHeaders="true"
40-
app:solidRowHeaders="true" />
40+
app:solidRowHeaders="true"
41+
app:dragAndDropEnabled="true"/>
4142
```
4243
| attribute name | description |
4344
|---|---|
4445
| cellMargin | margin between cards |
4546
| fixedHeaders | fixed headers mode. If enable, headers always will be displayed in the corners. |
4647
| solidRowHeaders | solid row headers mode. If enable, row header will change its position with dragging row. |
48+
| dragAndDropEnabled | drag and drop mode. If enable, column or row will change its position with dragging after long press on row or column header. |
4749

4850
```groovy
49-
// return fixed headers mode
51+
// Return fixed headers mode
5052
boolean isHeaderFixed();
5153
52-
// return solid row headers mode
54+
// Return solid row headers mode
5355
boolean isSolidRowHeader()
5456
57+
// Return drag and drop mode
58+
boolean isDragAndDropEnabled()
59+
60+
// Return true if layout direction is RightToLeft
61+
boolean isRTL()
62+
5563
// Set fixed headers mode
5664
void setHeaderFixed(boolean headerFixed)
5765
5866
// Set solid row headers mode
5967
void setSolidRowHeader(boolean solidRowHeader)
6068
69+
// Set drag and drop mode
70+
void setDragAndDrow(boolean enabled)
71+
6172
/**
6273
* Set adapter with IMMUTABLE data.
6374
* Create wrapper with links between layout rows, columns and data rows, columns.

0 commit comments

Comments
 (0)