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 {
3434Module build.gradle
3535``` java
3636dependencies {
37- compile ' com.github.iammert:MaterialIntroView:1.3 '
37+ compile ' com.github.iammert:MaterialIntroView:1.4 '
3838}
3939```
4040
Original file line number Diff line number Diff line change 1212import android .os .Build ;
1313import android .os .Handler ;
1414import android .util .AttributeSet ;
15+ import android .util .Log ;
1516import android .util .TypedValue ;
1617import android .view .Gravity ;
1718import android .view .LayoutInflater ;
@@ -399,13 +400,19 @@ private void dismiss() {
399400 @ Override
400401 public void onAnimationEnd () {
401402 setVisibility (GONE );
403+ removeMaterialView ();
402404
403405 if (materialIntroListener != null )
404406 materialIntroListener .onUserClicked (materialIntroViewId );
405407 }
406408 });
407409 }
408410
411+ private void removeMaterialView (){
412+ if (getParent () != null )
413+ ((ViewGroup ) getParent ()).removeView (this );
414+ }
415+
409416 /**
410417 * locate info card view above/below the
411418 * circle. If circle's Y coordiante is bigger than
Original file line number Diff line number Diff line change @@ -24,6 +24,6 @@ dependencies {
2424 testCompile ' junit:junit:4.12'
2525 compile ' com.android.support:appcompat-v7:23.1.1'
2626 compile ' com.android.support:design:23.1.1'
27- // compile 'com.github.iammert:MaterialIntroView:1.3 '
27+ // compile 'com.github.iammert:MaterialIntroView:a4b7947d19 '
2828 compile project(' :materialintro' )
2929}
You can’t perform that action at this time.
0 commit comments