Skip to content

Commit

Permalink
View is removed after dismissed.
Browse files Browse the repository at this point in the history
  • Loading branch information
iammert committed Jan 31, 2016
1 parent a4b7947 commit 08f65e5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repositories {
Module build.gradle
```java
dependencies {
compile 'com.github.iammert:MaterialIntroView:1.3'
compile 'com.github.iammert:MaterialIntroView:1.4'
}
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import android.os.Build;
import android.os.Handler;
import android.util.AttributeSet;
import android.util.Log;
import android.util.TypedValue;
import android.view.Gravity;
import android.view.LayoutInflater;
Expand Down Expand Up @@ -399,13 +400,19 @@ private void dismiss() {
@Override
public void onAnimationEnd() {
setVisibility(GONE);
removeMaterialView();

if (materialIntroListener != null)
materialIntroListener.onUserClicked(materialIntroViewId);
}
});
}

private void removeMaterialView(){
if(getParent() != null )
((ViewGroup) getParent()).removeView(this);
}

/**
* locate info card view above/below the
* circle. If circle's Y coordiante is bigger than
Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ dependencies {
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:design:23.1.1'
//compile 'com.github.iammert:MaterialIntroView:1.3'
//compile 'com.github.iammert:MaterialIntroView:a4b7947d19'
compile project(':materialintro')
}

0 comments on commit 08f65e5

Please sign in to comment.