Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
v2.0.2: Pick viewId automatically from view's tag
Browse files Browse the repository at this point in the history
Signed-off-by: Shripal Jain <shripal17@gmail.com>
  • Loading branch information
shripal17 committed Feb 12, 2020
1 parent 7f39964 commit d740106
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# MaterialIntroView [![](https://jitpack.io/v/shripal17/MaterialIntroView-v2.svg)](https://jitpack.io/#shripal17/MaterialIntroView-v2) [ ![Download](https://api.bintray.com/packages/shripal17/codertainment/materialintroview-v2/images/download.svg?version=2.0.1) ](https://bintray.com/shripal17/codertainment/materialintroview-v2/2.0.1/link)![](https://img.shields.io/badge/Min%20SDK-21-blueviolet)
# MaterialIntroView [![](https://jitpack.io/v/shripal17/MaterialIntroView-v2.svg)](https://jitpack.io/#shripal17/MaterialIntroView-v2) [ ![Download](https://api.bintray.com/packages/shripal17/codertainment/materialintroview-v2/images/download.svg?version=2.0.2) ](https://bintray.com/shripal17/codertainment/materialintroview-v2/2.0.2/link)![](https://img.shields.io/badge/SDK-21+-blueviolet)

Beautiful and highly customisable material-design based android library to help your users get started with your awesome app!
Based originally on [iammert/MaterialIntroView](https://github.com/iammert/MaterialIntroView).
Expand All @@ -17,8 +17,8 @@ Modifications/additions from the base lib:
- [x] Enhanced MaterialIntroListener, know when user has clicked or MIV was dismissed because it was set as saved
- [x] Add option (userClickAsDisplayed) to set view intro as displayed only if user clicks on target view or outside too (if dismissOnTouch is enabled)
- [x] More kotlin friendly
- [ ] Add Sequence
- [ ] Singleton-based approach for unified experience across your app
- [x] Add Sequence
- [x] Singleton-based approach for unified experience across your app
- [x] Bug fixes


Expand All @@ -43,7 +43,7 @@ allProjects {
```groovy
dependencies {
...
implementation 'com.codertainment.materialintro:materialintroview-v2:2.0.1'
implementation 'com.codertainment.materialintro:materialintroview-v2:2.0.2'
}
```
### Through JitPack
Expand All @@ -62,7 +62,7 @@ allProjects {
```groovy
dependencies {
...
implementation 'com.github.shripal17:MaterialIntroView-v2:2.0.1'
implementation 'com.github.shripal17:MaterialIntroView-v2:2.0.2'
}
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ allprojects { project ->
}
google()
group = 'com.codertainment.materialintro'
version = '2.0.1'
version = '2.0.2'

repositories {
google()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,11 @@ class MaterialIntroView : RelativeLayout {
var targetView
get() = myTargetView.view
set(value) {
if (value.tag is String) {
value.tag?.toString()?.let {
viewId = it
}
}
myTargetView = ViewTarget(value)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ class Child2Fragment : Fragment() {
add(
MaterialIntroConfiguration(
shapeType = ShapeType.RECTANGLE,
viewId = "c2_b1",
targetView = child2_button1,
infoText = "This is intro for Child2's Button1"
)
Expand Down
1 change: 1 addition & 0 deletions sample/src/main/res/layout/fragment_child2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="C2 Button1"
android:tag="c2_b1"
app:layout_constraintEnd_toEndOf="parent"
app:layout_constraintStart_toStartOf="parent"
app:layout_constraintBottom_toTopOf="@id/child2_button2"
Expand Down

0 comments on commit d740106

Please sign in to comment.