File tree Expand file tree Collapse file tree 4 files changed +21
-5
lines changed
recycleradapter-extensions/src/main/java/net/gotev/recycleradapter/ext Expand file tree Collapse file tree 4 files changed +21
-5
lines changed Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.5 -bin.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.0.2 -bin.zip
Original file line number Diff line number Diff line change 1
- # Sun Jan 20 12:28:53 CET 2019
1
+ # Sun Jan 20 12:40:43 CET 2019
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
4
zipStoreBase =GRADLE_USER_HOME
5
5
zipStorePath =wrapper/dists
6
- distributionUrl =https\://services.gradle.org/distributions/gradle-6.5 -bin.zip
6
+ distributionUrl =https\://services.gradle.org/distributions/gradle-7.0.2 -bin.zip
Original file line number Diff line number Diff line change 9
9
library_licenses = [" Apache-2.0" ]
10
10
library_licenses_url = ' http://www.apache.org/licenses/LICENSE-2.0.txt'
11
11
library_project_group = ' net.gotev'
12
- library_version = ' 4.0 .0'
12
+ library_version = ' 4.1 .0'
13
13
version_code = 6
14
14
min_sdk = 21
15
15
target_sdk = 30
16
16
demo_app_id = ' net.gotev.recycleradapterdemo'
17
17
18
18
// Gradle classpath dependencies versions
19
19
kotlin_version = ' 1.4.32'
20
- gradle_version = ' 4.1.3 '
20
+ gradle_version = ' 7.0.2 '
21
21
22
22
// Library and app testing dependencies versions
23
23
junit_version = ' 4.13'
Original file line number Diff line number Diff line change @@ -43,14 +43,30 @@ fun renderableItems(action: RenderableItems.() -> Unit): RenderableItems {
43
43
interface RecyclerAdapterProvider {
44
44
val recyclerAdapter: RecyclerAdapter
45
45
46
+ /* *
47
+ * Renders items in the recycler view.
48
+ * @param canvas renderable items to display in the list
49
+ */
46
50
fun render (canvas : RenderableItems ) {
47
51
syncItemsOrEmpty(null , canvas)
48
52
}
49
53
54
+ /* *
55
+ * Renders items in the recycler view.
56
+ * @param onEmptyCanvas renderable items to be displayed if and only if [canvas]
57
+ * renderable items are empty. null by default.
58
+ * @param canvas renderable items to display in the list
59
+ */
50
60
fun render (onEmptyCanvas : RenderableItems ? = null, canvas : RenderableItems ) {
51
61
syncItemsOrEmpty(onEmptyCanvas, canvas)
52
62
}
53
63
64
+ /* *
65
+ * Renders items in the recycler view.
66
+ * @param onEmptyCanvas renderable items to be displayed if and only if [canvas]
67
+ * renderable items are empty. null by default.
68
+ * @param canvas renderable items to display in the list
69
+ */
54
70
fun render (onEmptyCanvas : RenderableItems ? = null, canvas : RenderableItems .() -> Unit ) {
55
71
syncItemsOrEmpty(onEmptyCanvas, renderableItems(canvas))
56
72
}
You can’t perform that action at this time.
0 commit comments