Skip to content

Commit ebab18e

Browse files
authored
Create README.md
1 parent 6a75672 commit ebab18e

1 file changed

Lines changed: 14 additions & 12 deletions

File tree

README.md

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ Add the dependency below to your **module**'s `build.gradle` file:
3737

3838
```gradle
3939
dependencies {
40-
implementation("io.github.androidpoet:materialintro:1.0.6")
40+
implementation("io.github.androidpoet:materialintro:1.0.7")
4141
}
4242
```
4343

@@ -146,6 +146,7 @@ This is how to create an instance of the MaterialIntro using kotlin dsl.
146146

147147
```kotlin
148148
val meta = materialIntroFragment(this) {
149+
setFragmentsList(list)
149150
setEnterAnimation(IntroAnimation.Fade)
150151
setExitAnimation(IntroAnimation.Fade)
151152
setReenterAnimation(IntroAnimation.SharedAxisXBackward)
@@ -160,11 +161,11 @@ build()
160161
}
161162
meta.next()
162163
meta.previous()
163-
meta.setFragmentsList(list)
164164
```
165165
We can create the MaterialIntro using MaterialIntro.Builder.
166166
```kotlin
167167
val meta = MaterialIntroFragment.Builder(this)
168+
.setFragmentsList(list)
168169
.setEnterAnimation(IntroAnimation.Fade)
169170
.setExitAnimation(IntroAnimation.Fade)
170171
.setReenterAnimation(IntroAnimation.SharedAxisXBackward)
@@ -179,7 +180,7 @@ val meta = MaterialIntroFragment.Builder(this)
179180

180181
meta.next()
181182
meta.previous()
182-
meta.setFragmentsList(list)
183+
183184
```
184185

185186

@@ -223,20 +224,21 @@ Support it by joining __[stargazers](https://github.com/androidpoet/MaterialIntr
223224
```xml
224225
Copyright 2022 AndroidPoet (Ranbir Singh)
225226

226-
Licensed under the Apache License, Version 2.0 (the "License");
227-
you may not use this file except in compliance with the License.
228-
You may obtain a copy of the License at
227+
Licensed under the Apache License, Version 2.0 (the "License");
228+
you may not use this file except in compliance with the License.
229+
You may obtain a copy of the License at
229230

230-
http://www.apache.org/licenses/LICENSE-2.0
231+
http://www.apache.org/licenses/LICENSE-2.0
231232

232-
Unless required by applicable law or agreed to in writing, software
233-
distributed under the License is distributed on an "AS IS" BASIS,
234-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
235-
See the License for the specific language governing permissions and
236-
limitations under the License.
233+
Unless required by applicable law or agreed to in writing, software
234+
distributed under the License is distributed on an "AS IS" BASIS,
235+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
236+
See the License for the specific language governing permissions and
237+
limitations under the License.
237238
```
238239

239240

240241

241242

242243

244+

0 commit comments

Comments
 (0)