5 Star 9 Fork 0

大熊 / MovingImageDemo

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

#效果(录屏软件不好用,录制出来的效果一般) 输入图片说明 #代码示例

<com.zoke.moving.view.MovingImageView
        android:id="@+id/moveIv"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        app:move_load_on_create="true"
        app:move_max_relative_size="3.0"
        app:move_min_relative_offset="0.2"
        app:move_repetitions="-1"
        app:move_speed="10"
        app:move_start_delay="500" />
moveIv.getMovingAnimator().addListener(new Animator.AnimatorListener() {
            @Override
            public void onAnimationStart(Animator animation) {
                Log.i("MainActivity", "Start");
            }

            @Override
            public void onAnimationEnd(Animator animation) {
                Log.i("MainActivity", "End");
            }

            @Override
            public void onAnimationCancel(Animator animation) {
                Log.i("MainActivity", "Cancel");
            }

            @Override
            public void onAnimationRepeat(Animator animation) {
                Log.i("MainActivity", "Repeat");
            }
        });
@Override
    protected void onResume() {
        super.onResume();
        moveIv.getMovingAnimator().start();
    }

@Override
    protected void onStop() {
        super.onStop();
        moveIv.getMovingAnimator().cancel();
    }

Comments ( 0 )

Sign in for post a comment

About

图片可以移动的ImageView spread retract
Android
Apache-2.0
Cancel

Releases

No release

Gitee Metrics

Contributors

All

Activities

load more
can not load any more
Android
1
https://git.oschina.net/androidzk/MovingImageDemo.git
git@git.oschina.net:androidzk/MovingImageDemo.git
androidzk
MovingImageDemo
MovingImageDemo
master

Search