Android Load Box effect "It Blue Panther"

Source: Internet
Author: User

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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.