Skip to content

Commit 439ad05

Browse files
committed
Add DoubleLiftLayoutExtension
1 parent 4c991ee commit 439ad05

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

doublelift/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ dependencies {
2121
}
2222

2323
dokka {
24-
moduleName = 'rainbow'
24+
moduleName = 'doublelift'
2525
outputFormat = 'html'
2626
//noinspection GroovyAccessibility
2727
outputDirectory = "$buildDir/javadoc"

doublelift/src/main/java/com/skydoves/doublelift/DoubleLiftLayout.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ class DoubleLiftLayout : FrameLayout {
236236
}
237237
}
238238

239+
/** Builder class for creating [DoubleLiftLayout]. */
239240
@DoubleLiftLayoutDsl
240241
class Builder(context: Context) {
241242
private val doubleLiftLayout = DoubleLiftLayout(context)
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Designed and developed by 2019 skydoves (Jaewoong Eum)
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
package com.skydoves.doublelift
18+
19+
import android.content.Context
20+
21+
/** creates an instance of [DoubleLiftLayout] by [DoubleLiftLayout.Builder] using kotlin dsl. */
22+
fun doubleLiftLayout(context: Context, block: DoubleLiftLayout.Builder.() -> Unit): DoubleLiftLayout =
23+
DoubleLiftLayout.Builder(context).apply(block).build()

0 commit comments

Comments
 (0)