Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

yxping/AdhesiveLoadingView

Open more actions menu

Repository files navigation

AdhesiveLoadingView

一个具有粘性的滑动小球,具有跌落反弹形成文字的效果,形成loading字样

效果

项目结构

这个动画包括了三个过程:   1.小球旋转放大,其中还有震动效果   2.小球缩小衍生水滴,迅速跌落   3.文字弹出展现

在结构上是主要是通过controller对三个animator进行一个控制,并作为其中的信息传递媒介链接各个animator,将canvas分发给animator进行绘制。而view通过controller的初始化来达到展示动画的效果。其中,动画的效果是由AnimationSet进行顺序的控制。

用法

1.通过xml引入

<com.yxp.loading.lib.AdhesionLoadingView
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_centerInParent="true"/>

2.通过java引入

About

具有粘性的滑动小球,跌落反弹形成loading的效果

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.