Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
F

FPSAnimator

> 编程语言
Open source

FPSAnimator is very easy animation library for Android TextureView and SurfaceView.

747 stars0 likes2 views
WebsiteGitHub

About

FPSAnimator is very easy animation library for Android TextureView and SurfaceView.

FPSAnimator

A simple but powerful Tween / SpriteSheet / ParabolicMotion / animation library for Android TextureView and SurfaceView.

Features

  • The controls Fps possible to animation.
  • Possible for animation of Tween and SpriteSheet and ParabolicMotion in one of TextureView.
  • Possible to animate with low load on the terminal.
  • 28 types of Easing

Basic Usage

Gradle

groovy
    dependencies {
        // jCenter
        compile 'com.daasuu:FPSAnimator:0.2.4.0'
    }

Include the FPSTextureView widget in your layout. Set FPS by attribute. Default FPS is 30.

If you use SurfaceView , use FPSSurfaceVIew.

xml
    

In your onCreate method (or onCreateView for a fragment), bind the widget.

java
    private FPSTextureView mFPSTextureView;
    
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_easing_sample);
        mFPSTextureView = (FPSTextureView) findViewById(R.id.animation_texture_view);
    }

Create an instance of the DisplayObject, please add it to the FPSTextureView.

java
    Bitmap bitmap = BitmapFactory.decodeResource(getResources(), R.mipmap.ic_launcher);
    
    DisplayObject bitmapDisplay = new DisplayObject();
    bitmapDisplay
            .with(new BitmapDrawer(bitmap))
            .tween()
            .toX(1600, windowWidth - bitmap.getWidth(), Ease.BACK_IN_OUT)
            .waitTime(1000)
            .alpha(1000, 0f)
            .alpha(1000, 1f)
            .end();
            
    mFPSTextureView
                .addChild(bitmapDisplay)
                .tickStart();

The example above will create a new tween instance that:

  • tweens the target to an x value of rightSide over 1600ms
  • waits 1000 ms
  • tweens the target's alpha from 1 to 0 over 1s
  • tweens the target's alpha from 0 to 1 over 1s

Example

This is the implementation of the sample application.

SpriteSheet

java
    
    SpriteSheetDrawer spriteSheetDrawer = new SpriteSheetDrawer(
        spriteBitmapB, 
        frameWidth, 
        frameHeight, 
        frameNum)
        .spriteLoop(true);
    
    DisplayObject displayObject = new DisplayObject();
    displayObject
            .with(spriteSheetDrawer)
            .tween()
            .tweenLoop(true)
            .transform(-frameWidth, windowHeight / 2)
            .toX(3000, windowWidth)
            .end();

    mFPSTextureView
                .addChild(displayObject);

SpriteSheet wiki

TweenText

…

TweenBitmap

…

TweenAnimation wiki

ParabolicMotion

…

ParabolicMotion wiki

Container

A Container is a nestable display list that allows you to work with compound display elements.

For example you could group arm, leg, torso and head Bitmap instances together into a Person Container, and transform them as a group, while still being able to move the individual parts relative to each other. Children of containers have their transform and alpha properties concatenated with their parent Container.

Containers have some overhead, so you generally shouldn't create a Container to hold a single child.

Easing

Applications using FPSAnimator

Please send a pull request if you would like to be added here.

Icon Application
CChannel

Contributers

  • m1noon

License

Copyright 2016 MasayukiSuda

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidandroid-textureviewanimationanimation-library

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言