-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from iFanie/feature-grouped-position-info
Added grouped position info along with parent info
- Loading branch information
Showing
8 changed files
with
70 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...cycler/src/main/java/com/izikode/izilib/accordionrecycler/AccordionRecyclerItemDetails.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package com.izikode.izilib.accordionrecycler | ||
|
||
/** | ||
* Data class containing additional information about an item being recycled. | ||
*/ | ||
data class AccordionRecyclerItemDetails( | ||
|
||
/** | ||
* The number of immediate children of the current item. | ||
*/ | ||
val numberOfImmediateEnclosedItems: Int, | ||
|
||
/** | ||
* The number of total children, immediate or not, of the current item. | ||
*/ | ||
val numberOfTotalEnclosedItems: Int, | ||
|
||
/** | ||
* The overall position info of the current item. | ||
*/ | ||
val overallPosition: AccordionRecyclerPosition, | ||
|
||
/** | ||
* The position info of the current item, relative to it's parent item. | ||
*/ | ||
val enclosedPosition: AccordionRecyclerPosition, | ||
|
||
/** | ||
* The recycling details of the item enclosing the current, if existing. | ||
*/ | ||
val enclosingDetails: AccordionRecyclerItemDetails? | ||
|
||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,9 +36,9 @@ buildscript { | |
], | ||
|
||
Build : [ | ||
CODE : 2, | ||
CODE : 3, | ||
MAJOR : 0, | ||
MINOR : 2 | ||
MINOR : 3 | ||
] | ||
] | ||
} | ||
|