GithubHelp home page GithubHelp logo

coolandroidanim's Introduction

CoolAndroidAnim

一个酷炫的android loading效果,想法来源于Google的nexus机子6.0系统的开机动画,也是对于它的一个模仿:从四个小球的 不同的组合动画(包括了缩放,旋转,移动,变色等)演变成loading字样的效果.

效果

api

CoolAnimView.java

/**
 * 调用该方法可以使动画进入结束动画的阶段,而具体结束动画的时间,需要通过接口回调来获得
 */
void stopAnim();

/**
 * 设置结束动画的监听
 */
void setOnCoolAnimViewListener(OnCoolAnimViewListener onCoolAnimViewListener);

使用方法

1.通过XML设置

<com.tomandjerry.coolanim.lib.CoolAnimView
    android:id="@+id/cool_view"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

2.通过java代码引入

layout.addView(new CoolAnimView(MainActivity.this), params);

结构

作者

@Yellow5A5,@yxping

TODO

该库还未提供自由更改大小的能力

coolandroidanim's People

Contributors

yellow5a5 avatar yxping avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.