提供Android酷炫的开屏动画 (awesome-opening-animation)
Java
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.idea init commit Dec 17, 2017
app alter commit Dec 18, 2017
gradle/wrapper Initial commit Dec 17, 2017
openingstartanimation alter commit Dec 18, 2017
.gitattributes Initial commit Dec 17, 2017
.gitignore alter commit Dec 18, 2017
LICENSE Initial commit Dec 17, 2017
README.md Update README.md Jan 28, 2018
build.gradle alter commit Dec 18, 2017
gradle.properties Initial commit Dec 17, 2017
gradlew Initial commit Dec 17, 2017
gradlew.bat Initial commit Dec 17, 2017
settings.gradle Initial commit Dec 17, 2017

README.md

OpeningStartAnimation

bandge

效果

1.gif 2.gif 3.gif 4.gif

使用

compile 'site.gemus:openingstartanimation:1.0.0' //在gradle中导入项目
OpeningStartAnimation openingStartAnimation = new OpeningStartAnimation.Builder(this)
                        .setDrawStategy(new NormalDrawStrategy()) //设置动画效果
                        .create();
openingStartAnimation.show(this);
除此之外,还可以设置文字、图标、一句话描述、动画时间等等,也可以自定义开屏动画,开放了策略接口,像这样
OpeningStartAnimation openingStartAnimation = new OpeningStartAnimation.Builder(this)
                .setDrawStategy(new DrawStrategy() {
                    @Override
                    public void drawAppName(Canvas canvas, float fraction, String name, int colorOfAppName, WidthAndHeightOfView widthAndHeightOfView) {
                        
                    }

                    @Override
                    public void drawAppIcon(Canvas canvas, float fraction, Drawable icon, int colorOfIcon, WidthAndHeightOfView widthAndHeightOfView) {

                    }

                    @Override
                    public void drawAppStatement(Canvas canvas, float fraction, String statement, int colorOfStatement, WidthAndHeightOfView widthAndHeightOfView) {

                    }
                })
                .create();

具体使用方法可见: http://blog.csdn.net/qq_33487412/article/details/78832116 目前共有四种动画可供选择,欢迎来一起制作出更多的开屏动画效果!