百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
S

Springy_Facebook_Rebound

> 后端框架
开源

Springy 使 Android 属性动画易于使用。

189 stars0 点赞2 次浏览
访问官网GitHub

工具介绍

Springy 使 Android 属性动画易于使用。

Springy_Facebook_Rebound

Springy is About Motion and Animation on Android platform, you can make smooth and clean property animations

Scale, Translate, Alpha, Rotate.

How to use

First Need to add dependency in your Gradle.

     Compile 'com.facebook.rebound:rebound:0.3.8'    

 Then Create Springy Animator instance and you can initialize by one of it's two constructors.

 with Spring Config.
 
 1.SpringyAnimator(SpringAnimationType.SCALEXY,TENSION, FRACTION, ANIMATION_START_VALUE, ANIMATION_END_VALUE); 
 
 Without Spring Config.
 
 2.SpringyAnimator(SpringAnimationType.SCALEXY, ANIMATION_START_VALUE, ANIMATION_END_VALUE);
 
        {
        
        SpringyAnimator iconSpring = new SpringyAnimator(SpringAnimationType.SCALEXY, 4, 2.5, 0, 1);
        
        // start spring with you view.            
        iconSpring.startSpring(myView);      
        }

you can set Delay.

                iconSpring.setDelay(200);

SpringyAnimationTypes you can use.

TRANSLATEX,
TRANSLATEY,
ROTATEX,
ROTATEY,
SCALEXY,
SCALEX,
SCALEY,
ALPHA,
ROTATION

Springy For RecyclerView.

creat initialize SpringyAdapterAnimator in you Adapter Constructor.

       // pass recyclerView in it.
      springyAdapterAnimator = new SpringyAdapterAnimator(recyclerView);
       // set SpringyAdapterAnimationType
      springyAdapterAnimator.setSpringAnimationType(SpringyAdapterAnimationType.SLIDE_FROM_BOTTOM);
       // (optional) add Spring Config
      springyAdapterAnimator.addConfig(85,15);    
      
      // call this method in  onCreateViewHolder 
              springyAdapterAnimator.onSpringItemCreate(itemView);
              
              
       // call this method in  onBindViewHolder 
             springyAdapterAnimator.onSpringItemBind(holder.itemView, position);

SpringyAdapterAnimation Types you can use.

SLIDE_FROM_BOTTOM.

!

SLIDE_FROM_RIGHT.

SLIDE_FROM_LEFT.

SCALE.

About Facebook Rebound

Rebound is a java library that models spring dynamics. Rebound spring models can be used to create animations that feel natural by introducing real world physics to your application.

Rebound is not a general purpose physics library; however, spring dynamics can be used to drive a wide variety of animations. The simplicity of Rebound makes it easy to integrate and use as a building block for creating more complex components like pagers, toggles, and scrollers.

For examples and usage instructions head over to:

facebook.github.io/rebound

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Javaandroidanimationfacebookphysics

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类后端框架
定价开源

> 相关工具

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架