Android Load Box effect
Android Loading box effect, this example has several effects pop-up dialog, this example mainly custom Svprogresshud class,
This example source: Https://github.com/saiwu-bigkoo/Android-SVProgressHUD
The main code is as follows:
public enum Svprogresshudmasktype {
None,//allow the following controls to mask to click
Clear,//Do not allow the following controls to be masked
Black,//do not allow masking underneath the controls to be clicked, the background is dark translucent
Gradient,//Do not allow masking below controls to be clicked, background gradient translucent
Clearcancel,//Do not allow the following controls to be clicked, click Mask Disappears
Blackcancel,//Do not allow masking under control Click, Background Black Translucent, click Mask disappears
Gradientcancel//Do not allow masking below controls to click, background gradient translucent, click Matte disappears
;
}
Create an instance and initialize
private static final Svprogresshud getinstance (context context) {
if (Msvprogresshud = = null) {
Msvprogresshud = new Svprogresshud ();
Msvprogresshud.context = context;
msvprogresshud.gravity = Gravity.center;
Msvprogresshud.initviews ();
Msvprogresshud.initdefaultview ();
Msvprogresshud.initanimation ();
}
if (context! = NULL && context! = Msvprogresshud.context) {
Msvprogresshud.context = context;
Msvprogresshud.initviews ();
}
return msvprogresshud;
}
By adding dialog animations
Animation.animationlistener Outanimlistener = new Animation.animationlistener () {
@Override
public void Onanimationstart (Animation Animation) {}
@Override
public void Onanimationend (Animation Animation) {
Dismissimmediately ();
}
@Override
public void Onanimationrepeat (Animation Animation) {
}
};
Operating effect:
Related code
-
Android Load Box effect
-
H5 do the mall client, the effect is very good
-
ListView implements a variety of layout design functions
-
Gankapp Slide and title Modify the color of the full project app
-
Androidvideoplayer Play video online
-
Androidscreenslide Project Toggle View Animation effect
-
Scrolldownlayout ScrollView and Viewpager colleagues existing event handling
-
Starratingbar Star Toggle Animation
-
Anyshareofandroid Android third-party login
-
Animcheckbox button click Animation effect
Android Load Box effect "It Blue Panther"