This repository was archived by the owner on Jul 7, 2019. It is now read-only.
File tree 1 file changed +2
-46
lines changed 1 file changed +2
-46
lines changed Original file line number Diff line number Diff line change @@ -28,54 +28,10 @@ public boolean onPlaceSubheaderBetweenItems(int position) {
28
28
}
29
29
```
30
30
# Sample
31
- Please try out [ sample app] ( https://github.com/zhukic/Sectioned-RecyclerView/tree/master/sample ) for more details.
31
+ Please try out [ sample app] ( https://github.com/zhukic/Sectioned-RecyclerView/tree/master/sample ) for more details. Or:
32
32
33
- # Modify data
34
- ``` java
35
-
36
- notifyDataChanged();
37
-
38
- notifyItemInsertedAtPosition(int );
39
-
40
- notifyItemChangedAtPosition(int );
41
-
42
- notifyItemRemovedAtPosition(int );
43
-
44
- ```
45
- # Expanding and Collapsing Sections
46
- ``` java
47
-
48
- expandSection(int sectionIndex);
49
-
50
- expandAllSections();
51
-
52
- collapseSection(int sectionIndex);
53
-
54
- collapseAllSections();
55
-
56
- isSectionExpanded(int sectionIndex);
33
+ [ <img src =" https://play.google.com/intl/en_us/badges/images/generic/en_badge_web_generic.png " width =" 323 " height =" 125 " >] ( https://play.google.com/store/apps/details?id=com.github.zhukic.sectionedrecyclerview )
57
34
58
- ```
59
- # Other methods
60
- ``` java
61
-
62
- boolean isSubheaderAtPosition(int adapterPosition);
63
-
64
- int getSectionIndex(int adapterPosition);
65
-
66
- int getItemPositionInSection(int adapterPosition);
67
-
68
- boolean isFirstItemInSection(int adapterPosition);
69
-
70
- boolean isLastItemInSection(int adapterPosition);
71
-
72
- int getSectionSize(int sectionIndex);
73
-
74
- int getSectionSubheaderPosition(int sectionIndex);
75
-
76
- int getSectionsCount();
77
-
78
- ```
79
35
# Grid
80
36
If you are using a ``` GridLayoutManager ``` set it to adapter.
81
37
``` java
You can’t perform that action at this time.
0 commit comments