File tree Expand file tree Collapse file tree 3 files changed +9
-2
lines changed
materialintro/src/main/java/co/mobiwise/materialintro/view Expand file tree Collapse file tree 3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ repositories {
34
34
Module build.gradle
35
35
``` java
36
36
dependencies {
37
- compile ' com.github.iammert:MaterialIntroView:1.3 '
37
+ compile ' com.github.iammert:MaterialIntroView:1.4 '
38
38
}
39
39
```
40
40
Original file line number Diff line number Diff line change 12
12
import android .os .Build ;
13
13
import android .os .Handler ;
14
14
import android .util .AttributeSet ;
15
+ import android .util .Log ;
15
16
import android .util .TypedValue ;
16
17
import android .view .Gravity ;
17
18
import android .view .LayoutInflater ;
@@ -399,13 +400,19 @@ private void dismiss() {
399
400
@ Override
400
401
public void onAnimationEnd () {
401
402
setVisibility (GONE );
403
+ removeMaterialView ();
402
404
403
405
if (materialIntroListener != null )
404
406
materialIntroListener .onUserClicked (materialIntroViewId );
405
407
}
406
408
});
407
409
}
408
410
411
+ private void removeMaterialView (){
412
+ if (getParent () != null )
413
+ ((ViewGroup ) getParent ()).removeView (this );
414
+ }
415
+
409
416
/**
410
417
* locate info card view above/below the
411
418
* circle. If circle's Y coordiante is bigger than
Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ dependencies {
24
24
testCompile ' junit:junit:4.12'
25
25
compile ' com.android.support:appcompat-v7:23.1.1'
26
26
compile ' com.android.support:design:23.1.1'
27
- // compile 'com.github.iammert:MaterialIntroView:1.3 '
27
+ // compile 'com.github.iammert:MaterialIntroView:a4b7947d19 '
28
28
compile project(' :materialintro' )
29
29
}
You can’t perform that action at this time.
0 commit comments